1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 15:45:33 -04:00

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

This commit is contained in:
2020-04-13 17:25:29 -04:00
parent c1700cdda0
commit abbc3f9678
12 changed files with 25 additions and 21 deletions

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>