blob: 72e4af2d92d50ceda0d828d8239b0f506004987f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<div class="inline-links">
{{/* 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 -}}
<span><a href="{{ .RelPermalink }}">Archives</a></span>
{{- end -}}
{{- with .OutputFormats.Get "rss" -}}
<span><a href="{{ .Permalink }}" target="_blank">RSS</a></span>
{{- end -}}
</div>
|