diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 920d058df..6cf660af4 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -490,6 +490,7 @@ Menus: params: title: "Hugo Profile" description: Text about my cool site + keywords: "portfolio, blog, hugo, theme" # staticPath: "" # The path to serve the static files from favicon: "/fav.png" diff --git a/i18n/en.toml b/i18n/en.toml index e65ac4cde..83ff80a27 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -75,3 +75,7 @@ other = "Page not found" # Date formats [min_read] other = "min read" + +# SEO +[seo_description] +other = "A personal portfolio and blog" diff --git a/i18n/es.toml b/i18n/es.toml index 28d79e560..c772ea448 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -75,3 +75,7 @@ other = "Página no encontrada" # Date formats [min_read] other = "min de lectura" + +# SEO +[seo_description] +other = "Un portafolio personal y blog" diff --git a/i18n/fr.toml b/i18n/fr.toml index 218cb69ad..9e50c6392 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -75,3 +75,7 @@ other = "Page non trouvée" # Date formats [min_read] other = "min de lecture" + +# SEO +[seo_description] +other = "Un portfolio personnel et blog" diff --git a/layouts/404.html b/layouts/404.html index f937797bf..b0b42507e 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,5 +1,5 @@ {{ define "head" }} - + {{ end }} {{ define "title" }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b0fb6aa22..820cf47f5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f41e6126a..e72307fb9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -17,7 +17,7 @@

{{.Title}}

{{ if and (not (.Site.Params.listPages.disableFeaturedImage | default false)) (.Params.image) }}
- {{ .Title }} + {{ .Title }}
{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 7e23cc38f..703bfcc09 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,8 +1,12 @@ {{ define "head" }} - + +{{ with .Site.Params.hero.image }} + +{{ end }} + {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4d136737f..fe0f7190a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,6 +23,14 @@ + + + + +{{ with .Site.Params.keywords }} + +{{ end }} + {{ template "_internal/google_analytics.html" . }} {{ template "_internal/opengraph.html" . }} @@ -33,8 +41,13 @@ {{ range .AllTranslations }} {{ end }} - - + {{ $defaultLang := (index .Sites 0).Language.Lang }} + {{ range .AllTranslations }} + {{ if eq .Language.Lang $defaultLang }} + + {{ end }} + {{ end }} + {{ range .Translations }} {{ end }} @@ -48,7 +61,8 @@ {{- end -}} - + + diff --git a/layouts/partials/sections/about.html b/layouts/partials/sections/about.html index fe5f25114..4cc91ec72 100644 --- a/layouts/partials/sections/about.html +++ b/layouts/partials/sections/about.html @@ -7,7 +7,7 @@

{{ $about.title | default (i18n "about") {{ if .Site.Params.about.image }}
- {{ .Site.Params.title }} profile picture + {{ .Site.Params.title }} profile picture
{{ end }} diff --git a/layouts/partials/sections/achievements.html b/layouts/partials/sections/achievements.html index ed7aa871a..adad0d57d 100644 --- a/layouts/partials/sections/achievements.html +++ b/layouts/partials/sections/achievements.html @@ -11,7 +11,7 @@

{{ $achievements.title | default .Site.Params.achievemen {{if .image }}
- + {{ .title }}
{{ end }}
@@ -27,7 +27,7 @@
{{ .title }}
diff --git a/layouts/partials/sections/projects.html b/layouts/partials/sections/projects.html index 7cca26aab..7fc4a5569 100644 --- a/layouts/partials/sections/projects.html +++ b/layouts/partials/sections/projects.html @@ -8,7 +8,7 @@

{{ $projects.title | default .Site.Params.projects.title
- {{ .title }} + {{ .title }}
@@ -47,7 +47,7 @@
{{ .title }}
- {{ .Title }} + {{ .Title }}