summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-25 23:42:40 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-25 23:42:40 +0200
commitf46fcff28f243ea3957e01b82b959a5bf85ecbc7 (patch)
tree5a57e12bfc16f841b9c6a9e91ec655a04d01af12
parent88081d955e38264b6c7cd2be522ea6040a35d62c (diff)
downloadgohugo-theme-ed-f46fcff28f243ea3957e01b82b959a5bf85ecbc7.tar.gz
git st
-rw-r--r--archetypes/default.md15
-rw-r--r--archetypes/poem.md9
-rw-r--r--layouts/partials/head.html2
3 files changed, 25 insertions, 1 deletions
diff --git a/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 0000000..3612ee8
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,15 @@
+---
+title: "{{ replace .File.ContentBaseName "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+featured_image: ""
+description: ""
+rights: ""
+author: ""
+editor: ""
+source: ""
+tags:
+ - ""
+toc:
+ - ""
+---
diff --git a/archetypes/poem.md b/archetypes/poem.md
new file mode 100644
index 0000000..a3daf21
--- /dev/null
+++ b/archetypes/poem.md
@@ -0,0 +1,9 @@
+---
+title: "{{ replace .File.ContentBaseName "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+type: poem
+author: ""
+editor: ""
+source: ""
+---
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 4168a3d..866118e 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -27,7 +27,7 @@
<meta property="dc:creator" content="{{ $author }}">
<meta property="dc:identifier" content="{{ .Permalink }}">
{{- if .Params.editor }}<meta property="dc:contributor" content="{{ .Params.editor }}">{{ end }}
- {{- if .Params.pub_date }}<meta property="dc:date" content="{{ .Params.pub_date }}">{{ end }}
+ {{- if .Params.date }}<meta property="dc:date" content="{{ .Params.date }}">{{ end }}
{{- if .Params.rights }}<meta property="dc:rights" content="{{ .Params.rights }}">{{ end }}
<meta property="dc:source" content="{{ if .Params.source }}{{ .Params.source }}{{ else }}{{ .Site.Title }}{{ end }}">