make the main content/blog section configurable instead of hardcoded to notes

This commit is contained in:
jake committed 2020-04-13 17:25:29 -04:00
1 parent c1700cdda0
commit abbc3f9678
12 files changed
+25 -21

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@
{{ partialCached "head/feeds" . -}}
{{ partialCached "head/webmention" . -}}
<link rel="author" href="{{ "humans.txt" | absURL }}">
{{ if and .IsPage (eq .Type "notes") }}
{{ if and .IsPage (eq .Type .Site.Params.mainSection) }}
{{- with .OutputFormats.Get "amp" -}}
<link rel="amphtml" href="{{ .Permalink }}">
{{- end }}