Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Softorage/HugoTheme-VibrantShadows.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanmay Joshi <sanmaycjoshi@gmail.com>2022-08-16 14:14:27 +0300
committerSanmay Joshi <sanmaycjoshi@gmail.com>2022-08-16 14:14:27 +0300
commit59d54e67ed0568d5514ead4a0399d273da50ca4d (patch)
tree5961ee69e520bdb22ec17ed401216fc24f8ee1ca
parent47eee205e816fe92d34076b9e7050bf52c4f2799 (diff)
Moved meta charset, http-equiv, viewport tags to head.html from seo.html layout file
-rw-r--r--layouts/partials/head.html9
-rw-r--r--layouts/partials/seo.html6
2 files changed, 9 insertions, 6 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 8b28373..c54327d 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,4 +1,13 @@
<head>
+ <!-- Basic head tags -->
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>
+ {{- .Title | default site.Title }} {{- default " | " site.Params.meta.titleSeparator -}} {{ if not .IsHome }}{{ site.Title }}{{ else }}{{ site.Params.meta.tagline }}{{ end -}}
+ </title>
+
+ <!-- Googe Analytics, Cookie Consent should work only on production website -->
{{ if eq hugo.Environment "production" -}}
{{ if site.GoogleAnalytics }}
<!-- Google Analytics shall work only on production website -->
diff --git a/layouts/partials/seo.html b/layouts/partials/seo.html
index e17219b..27a955f 100644
--- a/layouts/partials/seo.html
+++ b/layouts/partials/seo.html
@@ -5,13 +5,7 @@
{{ $socialProfiles_len = len site.Params.social.profiles }}
{{ end }}
-<meta charset="utf-8" />
-<meta http-equiv="X-UA-Compatible" content="IE=edge" />
-<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- SEO template changes; source: https://digitalonlinetactics.com/post/blogging/hugo-seo-tips/ -->
-<title>
- {{- .Title | default site.Title }} {{- default " | " site.Params.meta.titleSeparator -}} {{ if not .IsHome }}{{ site.Title }}{{ else }}{{ site.Params.meta.tagline }}{{ end -}}
-</title>
<meta name="title" content="{{- .Title | default site.Title }} {{- default " | " site.Params.meta.titleSeparator -}} {{ if not .IsHome }}{{ site.Title }}{{ else }}{{ site.Params.meta.tagline }}{{ end -}}" />
<meta name="description" content="
{{- with .Description }}