summaryrefslogtreecommitdiff
path: root/layouts/partials/inline_links.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/inline_links.html')
-rw-r--r--layouts/partials/inline_links.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/partials/inline_links.html b/layouts/partials/inline_links.html
new file mode 100644
index 0000000..72e4af2
--- /dev/null
+++ b/layouts/partials/inline_links.html
@@ -0,0 +1,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>