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
@@ -1,6 +1,6 @@
{{ if eq hugo.Environment "production" }}
<link rel="preconnect" href="https://s.jarv.is" crossorigin>
{{ if and .IsPage (and (eq .Type "notes") (ne .Params.comments false)) }}
{{ if and .IsPage (and (eq .Type .Site.Params.mainSection) (ne .Params.comments false)) }}
<link rel="preconnect" href="https://utteranc.es" crossorigin>
<link rel="preconnect" href="https://api.utteranc.es" crossorigin>
<link rel="preconnect" href="https://api.github.com" crossorigin>