diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-08-25 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-08-25 00:00:00 +0000 |
commit | 632a5422b665a2bf91fa9baeb709a9eb1b5f9773eeec9c2f3a9d22876e53f8be (patch) | |
tree | 460032f496120fa11fa141da70066708140b624d28d4b1d33e3f6500ca56cedf /layouts/partials | |
parent | dd70d2fa0b4647771713853577ed175e21dca92e55dd31deee41d93628f920b5 (diff) | |
download | hugo-theme-journal-632a5422b665a2bf91fa9baeb709a9eb1b5f9773eeec9c2f3a9d22876e53f8be.tar.gz hugo-theme-journal-632a5422b665a2bf91fa9baeb709a9eb1b5f9773eeec9c2f3a9d22876e53f8be.zip |
Prefer right-aligned whitespace elimination
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head.html | 16 | ||||
-rw-r--r-- | layouts/partials/metadata.gmi | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b32f8ea..34a6ead 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,18 +1,18 @@ <head> <meta charset="utf-8"> + <meta name="theme-color" content="#000"> <meta name="viewport" content="width=device-width, initial-scale=1"> {{- if $.Site.Params.description }} <meta name="description" content="{{ $.Site.Params.description }}"> - {{- end }} - {{- if $.Site.Params.keywords }} + {{- end -}} + {{ if $.Site.Params.keywords }} <meta name="keywords" content="{{ $.Site.Params.keywords }}"> - {{- end }} - <meta name="theme-color" content="#000"> - {{- if .Site.Params.custom_css }} - {{- range .Site.Params.custom_css }} + {{- end -}} + {{ if .Site.Params.custom_css -}} + {{ range .Site.Params.custom_css }} <link rel="stylesheet" type="text/css" href="{{ relURL . }}"> - {{- end }} - {{- else }} + {{- end -}} + {{ else }} <link rel="stylesheet" type="text/css" href="{{ (resources.Get "css/style.css").RelPermalink }}"> {{- end }} <title>{{ .Title }}</title> diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index 1f8f513..00d78cd 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -1,2 +1,2 @@ -{{- partial "pageinfo.gmi" . }} +{{ partial "pageinfo.gmi" . }} => {{ .RelPermalink | replaceRE `(?m)index.gmi` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }}
\ No newline at end of file |