From 0a150463af8015b7936d8dd9189f4cdc84b9e60b Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 1 May 2022 13:09:23 +0200 Subject: Rework doubline core support --- layouts/partials/head.html | 12 ++---------- layouts/partials/templates/doublinecore.html | 14 ++++++++++++++ layouts/partials/templates/opengraph.html | 2 +- 3 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 layouts/partials/templates/doublinecore.html (limited to 'layouts') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f4303e1..f2ef3ba 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,17 +16,9 @@ {{ hugo.Generator }} - - - - - {{- if .Params.editor }}{{ end }} - {{- if .Params.date }}{{ end }} - {{- if .Params.rights }}{{ end }} - - {{- /* Misc */}} - {{template "partials/templates/opengraph.html" . }} + {{ template "partials/templates/doublinecore.html" . }} + {{ template "partials/templates/opengraph.html" . }} {{ partial "styles.html" . -}} {{ partial "scripts.html" . -}} diff --git a/layouts/partials/templates/doublinecore.html b/layouts/partials/templates/doublinecore.html new file mode 100644 index 0000000..674d343 --- /dev/null +++ b/layouts/partials/templates/doublinecore.html @@ -0,0 +1,14 @@ + + + + +{{- with .Params.editor }} + +{{- end }} +{{- with .Params.rights }} + +{{- end }} + +{{- with .Params.date }} + {{ printf "" (.UTC.Format "2006-01-02T15:04:05-07:00") | safeHTML }} +{{- end }} diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index 55bcbe3..e3dad0f 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/templates/opengraph.html @@ -1,4 +1,4 @@ - + -- cgit v1.2.3