Dev Test, added published date to META and to HEADER !publish!
This commit is contained in:
parent
eda1d4e462
commit
06ff8fb13b
3 changed files with 71 additions and 1 deletions
65
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/jgdr/layouts/partials/head.html
generated
Normal file
65
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/jgdr/layouts/partials/head.html
generated
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
<!-- ADDED PUBLISH DATE as DATE TO META -->
|
||||||
|
|
||||||
|
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="msapplication-TileColor" content="#da532c">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<!-- DESCRIPTION -->
|
||||||
|
{{ if .Description }}
|
||||||
|
<meta name="description" content="{{ .Description }}" />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- KEYWORDS -->
|
||||||
|
{{ if .Keywords }}
|
||||||
|
<meta name="keywords" content="{{ delimit .Keywords "," }}" />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- EDITORS (if available)-->
|
||||||
|
{{ if .Params.editors }}
|
||||||
|
{{ range .Params.editors }}
|
||||||
|
{{ $e := $.GetPage (printf "editor/%s" .) }}
|
||||||
|
<meta name="editor" content="{{ $e.Title }}" />
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- DATE -->
|
||||||
|
<!-- Add to meta fields date of publication via Hugo frontmatter field `publishDate` -->
|
||||||
|
{{ if .PublishDate }}
|
||||||
|
<meta name= "date" content = "{{ .PublishDate }}"/>
|
||||||
|
<!-- test print -->
|
||||||
|
{{ "dev-test: Published: " }} {{.PublishDate | time.Format "Jan 2, 2006" }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- AUTHORS (if available) -->
|
||||||
|
|
||||||
|
{{ if .Params.authors }}
|
||||||
|
{{ range .Params.authors }}
|
||||||
|
{{ $e := $.GetPage (printf "author/%s" .) }}
|
||||||
|
<meta name="author" content="{{ $e.Title }}" />
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ template "_internal/opengraph.html" . }}
|
||||||
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
|
|
||||||
|
{{ hugo.Generator }}
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/site.webmanifest">
|
||||||
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#996561">
|
||||||
|
|
||||||
|
{{ if eq hugo.Environment "dev" }}
|
||||||
|
{{ $style := resources.Get "css/site.css" | resources.PostCSS (dict "config" "assets/css/postcss.config.js") | minify }}
|
||||||
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
||||||
|
{{ $style := resources.Get "css/player.css" | resources.PostCSS (dict "config" "assets/css/postcss.config.js") | minify }}
|
||||||
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
||||||
|
{{ else }}
|
||||||
|
<link rel="stylesheet" href="/css/site.min.css" />
|
||||||
|
<link rel="stylesheet" href="/css/player.min.css" />
|
||||||
|
{{ end }}
|
|
@ -21,7 +21,6 @@ sandpointsMentionedIn = ["contributor", "article" ]
|
||||||
#lastmod = [':git', 'lastmod', 'date', 'publishDate']
|
#lastmod = [':git', 'lastmod', 'date', 'publishDate']
|
||||||
#expiryDate = ['expiryDate']
|
#expiryDate = ['expiryDate']
|
||||||
|
|
||||||
|
|
||||||
## sandpointsGiteaUrl is used in layouts/partials/header.html to generate links in admin ui bar
|
## sandpointsGiteaUrl is used in layouts/partials/header.html to generate links in admin ui bar
|
||||||
sandpointsGiteaUrl = "https://git.sandpoints.org/we/jgdr"
|
sandpointsGiteaUrl = "https://git.sandpoints.org/we/jgdr"
|
||||||
sandpointsCatalogPrefix = "/library/"
|
sandpointsCatalogPrefix = "/library/"
|
||||||
|
@ -155,6 +154,10 @@ source = "customizations/jgdr/layouts/taxonomy/list.html"
|
||||||
target = "layouts/taxonomy/list.html"
|
target = "layouts/taxonomy/list.html"
|
||||||
|
|
||||||
# FROM DOTAWO
|
# 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)
|
# MOUNT CUSTOM HEADER (DOTAWO CUSTOMIZATIONS)
|
||||||
[[module.imports.mounts]]
|
[[module.imports.mounts]]
|
||||||
source = "customizations/jgdr/layouts/partials/header.html"
|
source = "customizations/jgdr/layouts/partials/header.html"
|
||||||
|
|
|
@ -20,6 +20,8 @@ keywords:
|
||||||
- research through design
|
- research through design
|
||||||
- game design
|
- game design
|
||||||
title: Sample Markdown Article COMPILED (‘Other than text’ - Constantinos DiGRA 2023)
|
title: Sample Markdown Article COMPILED (‘Other than text’ - Constantinos DiGRA 2023)
|
||||||
|
|
||||||
|
publishDate: "2023-06-12"
|
||||||
---
|
---
|
||||||
|
|
||||||
Actual article reference
|
Actual article reference
|
||||||
|
|
Loading…
Add table
Reference in a new issue