From 889dcbfbc00e61e70103cdcbd79a6d2fc8a90163 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Thu, 10 Dec 2020 02:39:30 +0100 Subject: [PATCH] prepararsions for proper keywords --- customizations/Dotawo/assets/css/site.css | 10 ++++------ exampleSite/config.toml | 4 ++++ layouts/partials/singlebody.html | 3 +-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/customizations/Dotawo/assets/css/site.css b/customizations/Dotawo/assets/css/site.css index 8290a49..03e8a96 100644 --- a/customizations/Dotawo/assets/css/site.css +++ b/customizations/Dotawo/assets/css/site.css @@ -299,7 +299,7 @@ img { .grid { padding-left: 3rem; - margin-bottom: 4rem; + margin-bottom: 2rem; display: grid; grid-template-columns: 1fr 1fr; } @@ -422,16 +422,14 @@ h6 { } .abstract { - margin-top: 1.4rem; - padding-bottom: 1rem; font-style: italic; border-left: 1px solid rgb(0, 0, 0); margin-left: 5rem; margin-right: 2rem; padding-left: 1rem; padding-right: 2rem; - padding-top: 0.1rem; - padding-bottom: 0.1rem; + padding-top: 1.2rem; + padding-bottom: 1.2rem; background-color: rgba(0, 0, 0, 0.05); max-width: 70ch; } @@ -446,7 +444,7 @@ h6 { .keywords { display: inline-block; - font-size: 1rem; + font-size: 1.2rem; margin-left: 5rem; margin-right: 2rem; padding-left: 1rem; diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 20b8981..11046db 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -5,6 +5,10 @@ theme = "sandpoints" relativeurls = true disableKinds = ["RSS", "sitemap"] +# journals probably should have at least keyword = "keywords" +# [taxonomies] +# keyword = "keywords" + [params] description = "This is an example description in Sandpoints Theme's example config file." # sandpointsGiteaUrl is used in layouts/partials/header.html to generate links in admin ui bar diff --git a/layouts/partials/singlebody.html b/layouts/partials/singlebody.html index 5d38f6a..fa46a68 100644 --- a/layouts/partials/singlebody.html +++ b/layouts/partials/singlebody.html @@ -76,5 +76,4 @@ {{ with .Page.Params.abstract }}
abstract⁄{{ . | markdownify }}
{{ end }} {{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}
keywords⁄{{- $v -}}{{- else -}}, - {{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}
{{- end -}} \ No newline at end of file + class="keywords">keywords⁄{{- $v -}}{{- else -}}, {{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}{{- end -}} \ No newline at end of file