Hi, i have been trying to create an article link preview. Basically a shortcode that allows me to mention other articles(eg in a series) by showing the article image, link, date and read minutes.
I am using Hugo Novela. Heres my code.
NB: I tried removing and adding ( .Params ) but it didn’t build so here’s one with .Params on.
What it’s supposed to do is when I add this shortcode:{{< articlepreview “post/share-buttons-for-hugo/” >}}, it’s supposed to display the image, date and read minutes, all enclosed inside of the link of the post. I have tried having the full url and the one shown above. It doesn’t work. The feature is called Article Preview. It is used to recommend an article similar to the one being viewed or just to promote other articles. So I am working on a 2 part series involving sharing, and my latest article is about the web share API, so I am trying to recommend users to check the last post for a fallback strategy.
It’s similar to related articles but it has to have freedom for example I can decide to promote/recommend an irrelevant article.
Hi, i have been trying to create an article link preview. Basically a shortcode that allows me to mention other articles(eg in a series) by showing the article image, link, date and read minutes.
I am using Hugo Novela. Heres my code.
NB: I tried removing and adding ( .Params ) but it didn’t build so here’s one with .Params on.
What it’s supposed to do is when I add this shortcode:{{< articlepreview “post/share-buttons-for-hugo/” >}}, it’s supposed to display the image, date and read minutes, all enclosed inside of the link of the post. I have tried having the full url and the one shown above. It doesn’t work. The feature is called Article Preview. It is used to recommend an article similar to the one being viewed or just to promote other articles. So I am working on a 2 part series involving sharing, and my latest article is about the web share API, so I am trying to recommend users to check the last post for a fallback strategy.
It’s similar to related articles but it has to have freedom for example I can decide to promote/recommend an irrelevant article.
Ok, when i add that code, all it does is display a blank
Here’s what id displays. The link to the article works, clicking is taking me to the article I wanted to link, the issue is the title, and image are not displaying.