{{/* use `.GetPage "archives"` causes term page to get the root archives */}} {{/* trim relURL prefix because .RelPermalink includes the path of base url */}} {{ $archivesPath := printf "/%sarchives" (strings.TrimPrefix (relURL "") .RelPermalink) }} {{- with .GetPage $archivesPath -}} Archives {{- end -}} {{- with .OutputFormats.Get "rss" -}} RSS {{- end -}}