summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-11 22:24:40 +0800
committerReorx <novoreorx@gmail.com>2022-04-11 22:24:40 +0800
commit9678b1cb6fe7c999c673ba8261c00e7cce7a7533 (patch)
tree05b44c13692eb2d86abbdd7485dda14bfc14d6f2
parent2023e862af062de8e3ff749be852d9ee4330c9a8 (diff)
adjust head tags order
put noscript at the end
-rw-r--r--layouts/partials/head.html19
1 files changed, 9 insertions, 10 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 35f6abd..99d33ae 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -102,6 +102,15 @@
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
{{ end -}}
+{{- /* Misc */}}
+{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
+{{- template "_internal/google_analytics.html" . }}
+{{- end -}}
+{{- template "partials/templates/opengraph.html" . }}
+{{- template "partials/templates/twitter_cards.html" . }}
+{{- template "partials/templates/schema_json.html" . }}
+
+{{- partial "extend_head.html" . }}
<noscript>
<style>
#theme-toggle,
@@ -141,13 +150,3 @@
</style>
{{- end }}
</noscript>
-
-{{- partial "extend_head.html" . -}}
-
-{{- /* Misc */}}
-{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
-{{- template "_internal/google_analytics.html" . }}
-{{- end -}}
-{{- template "partials/templates/opengraph.html" . }}
-{{- template "partials/templates/twitter_cards.html" . }}
-{{- template "partials/templates/schema_json.html" . }}