From 8f6175c0d25949c1c7bd087a004bf1c459387d72 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 1 Oct 2023 16:02:02 -0700 Subject: [PATCH] Better OG tags in head partial --- .gitignore | 5 +++++ main-site/content/dev/.gitkeep | 0 main-site/content/feed/.gitkeep | 0 main-site/hugo.yaml | 1 + main-site/themes/temper/layouts/_default/single.html | 2 ++ main-site/themes/temper/layouts/partials/head.html | 10 +++++----- 6 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 main-site/content/dev/.gitkeep create mode 100644 main-site/content/feed/.gitkeep diff --git a/.gitignore b/.gitignore index f12edcb..d614195 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,8 @@ main-site/public/ main-site/.hugo_build.lock *.swp +infra/.terraform/ +infra/.terraform.lock.hcl +infra/set-env.sh +infra/out.plan +infra/terraform.tfvars \ No newline at end of file diff --git a/main-site/content/dev/.gitkeep b/main-site/content/dev/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/main-site/content/feed/.gitkeep b/main-site/content/feed/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/main-site/hugo.yaml b/main-site/hugo.yaml index 5914e9c..5280ba2 100644 --- a/main-site/hugo.yaml +++ b/main-site/hugo.yaml @@ -6,6 +6,7 @@ theme: 'temper' Params: description: I like to make stuff + name: temper.tv twitch: https://twitch.tv/shockrah gitlab: https://gitlab.com/shockrah github: https://github.com/tempersama diff --git a/main-site/themes/temper/layouts/_default/single.html b/main-site/themes/temper/layouts/_default/single.html index b3ea804..1eddbd9 100644 --- a/main-site/themes/temper/layouts/_default/single.html +++ b/main-site/themes/temper/layouts/_default/single.html @@ -1,4 +1,6 @@ {{ define "main" }} + {{ partial "head.html" }} + {{ partial "minimal-navbar.html" }}

{{ .Title }}

{{ if .Params.Article }}
{{ .Params.Description }}
diff --git a/main-site/themes/temper/layouts/partials/head.html b/main-site/themes/temper/layouts/partials/head.html index 1f93b38..dfa5998 100644 --- a/main-site/themes/temper/layouts/partials/head.html +++ b/main-site/themes/temper/layouts/partials/head.html @@ -3,12 +3,12 @@ - {{.Site.Params.Title}} + {{ default .Params.Title .Site.Params.Title }} - - - - + + + +