diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 87255a22..2e961e99 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -5,14 +5,16 @@
{{ end }}
- {{/* Title */}}
+
+ {{/* Title logic */}}
{{ if .IsHome -}}
-
{{ .Site.Title | emojify }}
-
+ Merox - IT Blog & Docs
+
{{- else -}}
- {{ .Title | emojify }} · {{ .Site.Title | emojify }}
-
+ {{ .Title | emojify }} · Merox
+
{{- end }}
+
{{/* Metadata */}}
{{ with (.Params.Summary | default .Params.Description) | default .Site.Params.description -}}
@@ -27,11 +29,7 @@
{{ end }}
- {{ range .AlternativeOutputFormats -}}
- {{ printf `
- ` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) |
- safeHTML }}
- {{ end -}}
+
{{/* Asset bundles */}}
{{ $assets := newScratch }}
{{ $cssScheme := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "blowfish")) }}
@@ -49,10 +47,13 @@
"sha512" }}
+
+ {{/* JavaScript Files */}}
{{ $jsAppearance := resources.Get "js/appearance.js" }}
{{ $jsAppearance = $jsAppearance | resources.ExecuteAsTemplate "js/appearance.js" . | resources.Minify | resources.Fingerprint "sha512" }}
+
{{ if .Site.Params.enableSearch | default false }}
{{ $jsFuse := resources.Get "lib/fuse/fuse.min.js" }}
{{ $jsSearch := resources.Get "js/search.js" }}
@@ -72,14 +73,15 @@
{{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint
"sha512" }}
+ integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n "code.copy" }}" data-copied="{{ i18n "code.copied" }}">
{{ end }}
+
{{ if not .Site.Params.disableImageZoom | default true }}
{{ $zoomJS := resources.Get "lib/zoom/zoom.min.js" | resources.Fingerprint "sha512" }}
{{ end }}
- {{/* Icons */}}
+
+ {{/* Icons and other metadata */}}
{{ if templates.Exists "partials/favicons.html" }}
{{ partialCached "favicons.html" .Site }}
{{ else }}
@@ -88,65 +90,24 @@
{{ end }}
- {{/* Site Verification */}}
- {{ with .Site.Params.verification.google }}
-
- {{ end }}
- {{ with .Site.Params.verification.bing }}
-
- {{ end }}
- {{ with .Site.Params.verification.pinterest }}
-
- {{ end }}
- {{ with .Site.Params.verification.yandex }}
-
- {{ end }}
- {{/* Social */}}
+
+ {{/* Social metadata */}}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
- {{/* Schema */}}
+
+ {{/* Schema and author information */}}
{{ partial "schema.html" . }}
- {{/* Me */}}
{{ with .Site.Params.Author.name }}
- {{ end }}
+
+ {{ end }}
{{ with .Site.Params.Author.links }}
{{ range $links := . }}
{{ range $name, $url := $links }}
- {{ end }}
+
{{ end }}
{{ end }}
- {{/* Vendor */}}
- {{ partial "vendor.html" . }}
- {{/* Analytics */}}
+ {{ end }}
+
+ {{/* Google Analytics */}}
{{ partial "analytics/main.html" .Site }}
- {{/* Extend head - eg. for custom analytics scripts, etc. */}}
- {{ if templates.Exists "partials/extend-head.html" }}
- {{ partialCached "extend-head.html" .Site }}
- {{ end }}
-
- {{/* Firebase */}}
- {{ with $.Site.Params.firebase }}
- {{ if isset $.Site.Params "firebase" }}
-
-
-
-
- {{ end }}
- {{ end }}
-
+
\ No newline at end of file