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:
@@ -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 }}">
|
||||
|
Reference in New Issue
Block a user