diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-01 13:09:23 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-01 13:09:23 +0200 |
| commit | 0a150463af8015b7936d8dd9189f4cdc84b9e60b (patch) | |
| tree | 07c671b73b2e84aab4d7cd3ff396e6d8de953a03 /layouts/partials/templates/doublinecore.html | |
| parent | 4c3f5c2b8c890be8798d1bf25205d8249fe8faec (diff) | |
| download | gohugo-theme-ed-0a150463af8015b7936d8dd9189f4cdc84b9e60b.tar.gz | |
Rework doubline core support
Diffstat (limited to 'layouts/partials/templates/doublinecore.html')
| -rw-r--r-- | layouts/partials/templates/doublinecore.html | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ + <!-- Dublin Core metadata for Zotero --> + <meta property="dc:title" content="{{ .Title }}"> + <meta property="dc:identifier" content="{{ .Permalink }}"> + <meta property="dc:creator" content="{{ ( partial "author.html" . ) }}"> +{{- with .Params.editor }} + <meta property="dc:contributor" content="{{ . }}"> +{{- end }} +{{- with .Params.rights }} + <meta property="dc:rights" content="{{ . }}"> +{{- end }} + <meta property="dc:source" content="{{ if .Params.source }}{{ .Params.source }}{{ else }}{{ site.Title }}{{ end }}"> +{{- with .Params.date }} + {{ printf "<meta property=\"dc:date\" content=\"%s\">" (.UTC.Format "2006-01-02T15:04:05-07:00") | safeHTML }} +{{- end }} |
