 }}
  <!-- positional version -->
  {{ $path = .Get 0 }}
  {{ $text = .Get 1 }}
  {{ $title = .Get 2 }}
  {{ $anchor = .Get 3 }}
{{ end }}

<!-- remove "/" from beginning and ending from post's path (if any).
    Now, we don't care if we have included them in the params or not. -->
{{ $path := trim $path "/" }}

<!-- supporting older posts that do not use page bundle
    Check if the post ends with .md or .markdown, if so, do not add `/index.markdown`
    to the end. -->

{{ if not (or (strings.HasSuffix $p