diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-13 09:48:09 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-13 09:48:09 +0200 |
| commit | e53cb90a2b9c0ca24b86f66dea1c140d8e8dee09 (patch) | |
| tree | 791b9dce81c414bb0fd4be691512650a96d819a8 | |
| parent | 02915fb955416ebd05aee35ccdad327d9c4fab0a (diff) | |
| download | gohugo-theme-ed-e53cb90a2b9c0ca24b86f66dea1c140d8e8dee09.tar.gz | |
Drop Dublin Core support
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
| -rw-r--r-- | layouts/partials/head.html | 3 | ||||
| -rw-r--r-- | layouts/partials/templates/doublinecore.html | 14 |
4 files changed, 3 insertions, 19 deletions
@@ -56,8 +56,7 @@ to generate high-quality editions on github.io in large quantities based on the - Easier for digital archives and libraries to preserve - Open source, open access - Unobtrusive footnotes -- Metadata in Dublin Core and OpenGraph to play nice with Zotero, libraries - and social media +- Metadata in OpenGraph to play nice with social media and search engines - Automatic table of content generation ## License diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 9d9e70b..a888bfb 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}> +<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }} prefix="og: http://ogp.me/ns#; dc: http://purl.org/dc/terms/#"> {{- partial "head.html" . -}} <body class="theme-base-{{ site.Params.color_scheme }}"> {{ if .Params.toc }}{{ partial "sidebar-toc.html" . }}{{ else }}{{ partial "sidebar.html" . }}{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d030521..da95aa5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,5 +1,5 @@ {{/* */}} -<head prefix="og: http://ogp.me/ns#; dc: http://purl.org/dc/terms/#"> +<head> {{- $description := print .Params.Description -}} {{- if or .IsHome (eq .Params.Description "") (not .Params.Description) -}} {{ $description = site.Params.Description }} @@ -36,6 +36,5 @@ {{- partial "custom-head.html" . -}} {{- /* Misc */}} - {{ template "partials/templates/doublinecore.html" . }} {{ template "partials/templates/opengraph.html" . }} </head> diff --git a/layouts/partials/templates/doublinecore.html b/layouts/partials/templates/doublinecore.html deleted file mode 100644 index 04e8ae6..0000000 --- a/layouts/partials/templates/doublinecore.html +++ /dev/null @@ -1,14 +0,0 @@ - <!-- 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 -}} |
