From 1536c43e1a24f8e01d80aba9cf8dff49fd3b5026 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 23 Apr 2022 22:30:52 +0200 Subject: Add Dublin Core metadata for Zotero --- README.md | 8 +++++++- layouts/partials/head.html | 25 +++++++++++++++++++++---- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d6ff556..0a748ce 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,16 @@ A theme for [Hugo](http://gohugo.io), a framework for building websites. ```toml baseURL = 'http://example.org/' languageCode = 'en-us' -title = 'My New Hugo Site' +title = 'Ed.' theme = "ed" +# Used in authorbox +[Author] + name = "John Doe" + [Params] + # Site description. Used in meta description + description = 'Ed is a Jekyll theme designed for textual editors based on minimal computing principles, and focused on legibility and flexibility.' # Color scheme. Options: red, orange, magenta, cyan, blue, brown color_scheme = '' ``` diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bb7e793..57784e8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,15 +1,32 @@ - {{ $resource_url := print .Site.BaseURL | safeURL }} + {{- $resource_url := print .Site.BaseURL | safeURL -}} + + {{- $title := print .Title -}} + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + + {{- $description := print .Description -}} + {{ if .IsHome }}{{ $description = .Site.Params.Description }}{{ end }} + + {{- $author := print .Site.Author.name -}} + {{- if .Params.author -}}{{ $author = .Params.author }}{{- end -}} + - + - {{ $title := print .Site.Title " | " .Title }} - {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} {{ $title }} + + + + + + {{ if .Params.editor }}{{ end }} + {{ if .Params.pub_date }}{{ end }} + {{ if .Params.rights }}{{ end }} + -- cgit v1.2.3