How to print .Permalink in shortcode

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}}

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.