From 56def0d82541cc34012a69b82a190fd8ef4adc2b Mon Sep 17 00:00:00 2001 From: constantinos Date: Thu, 17 Aug 2023 17:02:39 +0300 Subject: [PATCH] Dev Test, added published date to META and to HEADER !publish! --- .../jgdr/layouts/partials/head.html | 65 +++++++++++++++++++ config.toml | 5 +- content/article/ex-constantinos-digra-out.md | 2 + 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/jgdr/layouts/partials/head.html diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/jgdr/layouts/partials/head.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/jgdr/layouts/partials/head.html new file mode 100644 index 0000000..a9a32ed --- /dev/null +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/jgdr/layouts/partials/head.html @@ -0,0 +1,65 @@ + + + + + + + + + +{{ if .Description }} + +{{ end }} + + +{{ if .Keywords }} + +{{ end }} + + +{{ if .Params.editors }} + {{ range .Params.editors }} + {{ $e := $.GetPage (printf "editor/%s" .) }} + + {{ end }} +{{ end }} + + + +{{ if .PublishDate }} + + + {{ "dev-test: Published: " }} {{.PublishDate | time.Format "Jan 2, 2006" }} + +{{ end }} + + + +{{ if .Params.authors }} + {{ range .Params.authors }} + {{ $e := $.GetPage (printf "author/%s" .) }} + + {{ end }} +{{ end }} + + +{{ template "_internal/opengraph.html" . }} +{{ template "_internal/twitter_cards.html" . }} + +{{ hugo.Generator }} + + + + + + + +{{ if eq hugo.Environment "dev" }} + {{ $style := resources.Get "css/site.css" | resources.PostCSS (dict "config" "assets/css/postcss.config.js") | minify }} + + {{ $style := resources.Get "css/player.css" | resources.PostCSS (dict "config" "assets/css/postcss.config.js") | minify }} + +{{ else }} + + +{{ end }} diff --git a/config.toml b/config.toml index fe633ea..ea97884 100644 --- a/config.toml +++ b/config.toml @@ -21,7 +21,6 @@ sandpointsMentionedIn = ["contributor", "article" ] #lastmod = [':git', 'lastmod', 'date', 'publishDate'] #expiryDate = ['expiryDate'] - ## sandpointsGiteaUrl is used in layouts/partials/header.html to generate links in admin ui bar sandpointsGiteaUrl = "https://git.sandpoints.org/we/jgdr" sandpointsCatalogPrefix = "/library/" @@ -155,6 +154,10 @@ source = "customizations/jgdr/layouts/taxonomy/list.html" target = "layouts/taxonomy/list.html" # FROM DOTAWO +# MOUNT CUSTOM HEAD (PASS PUBLISHED DATE as metadata date, if it exists) +[[module.imports.mounts]] +source = "customizations/jgdr/layouts/partials/head.html" +target = "layouts/partials/head.html" # MOUNT CUSTOM HEADER (DOTAWO CUSTOMIZATIONS) [[module.imports.mounts]] source = "customizations/jgdr/layouts/partials/header.html" diff --git a/content/article/ex-constantinos-digra-out.md b/content/article/ex-constantinos-digra-out.md index ea63d5d..4622fda 100644 --- a/content/article/ex-constantinos-digra-out.md +++ b/content/article/ex-constantinos-digra-out.md @@ -20,6 +20,8 @@ keywords: - research through design - game design title: Sample Markdown Article COMPILED (‘Other than text’ - Constantinos DiGRA 2023) + +publishDate: "2023-06-12" --- Actual article reference