From a2d925c876b6b92c84a41143c4947fc722442108 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Fri, 12 May 2023 19:47:26 +0200 Subject: [PATCH] Toevoegen van Twitter cards met Hugo builtin --- config.toml | 3 +++ themes/nluug/layouts/partials/head.html | 15 ++++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/config.toml b/config.toml index 71926a0..fcc2a53 100644 --- a/config.toml +++ b/config.toml @@ -70,6 +70,9 @@ defaultcontentlanguage = "nl" style = 'monokailight' tabWidth = 4 +[social] + twitter = "NLUUG" + [taxonomies] tag = "tags" diff --git a/themes/nluug/layouts/partials/head.html b/themes/nluug/layouts/partials/head.html index 5bb6dad..d19dc8e 100644 --- a/themes/nluug/layouts/partials/head.html +++ b/themes/nluug/layouts/partials/head.html @@ -2,18 +2,11 @@ - {{ if eq .IsHome true }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }} + {{ template "_internal/opengraph.html" . }} - {{ template "_internal/schema.html" . }} - - - - - - - + {{ template "_internal/twitter_cards.html" . }} @@ -22,7 +15,7 @@ {{ $styles := resources.Get "scss/styles.scss" | toCSS (dict "outputStyle" "compressed") | minify }} {{ $styles_extra := resources.Get "scss/_extra.scss" | toCSS (dict "outputStyle" "compressed") | minify }} - +