mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 06:38:30 -04:00
don't preconnect to utteranc.es endpoints if comments disabled
This commit is contained in:
parent
124d55a99e
commit
61741df3f7
@ -1,6 +1,6 @@
|
||||
{{ if eq hugo.Environment "production" }}
|
||||
<link rel="preconnect" href="https://s.jarv.is" crossorigin="anonymous">
|
||||
{{ if and .IsPage (eq .Type "notes") }}
|
||||
{{ if and .IsPage (and (eq .Type "notes") (ne .Params.comments false)) }}
|
||||
<link rel="preconnect" href="https://utteranc.es" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://api.utteranc.es" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://api.github.com" crossorigin="anonymous">
|
||||
|
Loading…
x
Reference in New Issue
Block a user