diff options
author | uPagge <git@upagge.ru> | 2021-02-16 23:29:08 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-02-16 23:29:08 +0300 |
commit | 1374f9fe8cd8842e981b8deeed619bfdbe067f4d (patch) | |
tree | bdead1405f6b53265292eead3fcea278d001d4d3 /layouts/_default/baseof.html | |
parent | a4b91e68179c3c51a54e1a6fa95e281ba8af73de (diff) |
dns-prefetch
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 25d84ec..dfa3037 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -13,7 +13,13 @@ {{- partial "head/meta.html" . -}} {{- partial "head/link.html" . -}} {{- partial "head/seo.html" . -}} - {{- block "dnsPrefetch" . }}{{ end -}} + {{- block "dnsPrefetch" . }} + {{- with $.Site.Params.Seo.dnsPrefetch -}} + {{- range $index, $value := . -}} + <link rel="dns-prefetch" href="{{ $value }}"> + {{- end -}} + {{- end -}} + {{ end -}} </head> <body data-header-desktop="{{ .Site.Params.header.desktopMode }}" data-header-mobile="{{ .Site.Params.header.mobileMode }}"> {{- /* Check theme isDark before body rendering */ -}} |