I want to print the permalink via shortcode. I have tried this
test.md
{{< permalink >}}
permalink.html
{{.Permalink}}
the error log says can't evaluate field Permalink in type *hugolib.ShortcodeWithPage
I want to print the permalink via shortcode. I have tried this
test.md
{{< permalink >}}
permalink.html
{{.Permalink}}
the error log says can't evaluate field Permalink in type *hugolib.ShortcodeWithPage
Use {{.Page.Permalink}}
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.