Shortcode: article link #1925
Unanswered
BabaRagnarok
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm having trouble with Hugo when trying to embed an article within another article using the article shortcode. I cannot correctly link a post located in a different folder.
The article I want to embed is located at:
mywebsite/content/blog/2024/april_pub/frontend/index.md
The main article where I want to include the link is located at:
content/blog/2024/article/other-article.md
I’m using the following shortcode:
{{< article link="/blog/2024/april_pub/frontend/" >}}
However, the embed does not display anything. I’ve checked that the relative permalink is correct (based on the folder structure), but Hugo doesn’t show anything.
Anyone have the same issue?
Beta Was this translation helpful? Give feedback.
All reactions