1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:41:18 -04:00

enable AMP on more layouts/pages

This commit is contained in:
2020-11-08 11:12:21 -05:00
parent b378cb4afb
commit 6ada1afd4a
10 changed files with 364 additions and 292 deletions

View File

@@ -1,9 +1,9 @@
<link rel="canonical" href="{{ .Permalink }}">
{{ if and .IsPage (eq .Type .Site.Params.mainSection) -}}
{{ if and .IsPage (ne .Params.amp false) -}}
{{- with .OutputFormats.Get "amp" -}}
<link rel="amphtml" href="{{ .Permalink }}">
{{- end -}}
{{- end }}
{{- end }}
<link rel="author" href="{{ "humans.txt" | absURL }}">