From f64f15984ee9caf369278ec2e200f78ae37cf337 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:32:56 +0200 Subject: [PATCH 1/8] Adjusted font sizes --- assets/css/main.scss | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 93258cc..77c535c 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -31,9 +31,14 @@ $s-content: 1000px; $s-nav-title: 24px; $s-border: 2px; $s-border-radius: 2px; +$s-font-size: 18px; $p-box-shadow: 1px 1px 5px #888; +html { + font-size: $s-font-size; +} + body { background-color: $c-bg; color: $c-font; @@ -151,7 +156,7 @@ main { } h1, h2 { - font-size: 3em; + font-size: 3rem; margin: 20px 0 0; padding: 0; text-decoration: underline; @@ -164,7 +169,7 @@ main { } h2 { - font-size: 2em; + font-size: 2rem; margin: 40px 0 0; text-decoration-thickness: 3px; @@ -183,6 +188,14 @@ main { } } + h3 { + font-size: 1.3rem; + } + + h4 { + font-size: 1.1rem; + } + figure { margin: 0; @@ -242,7 +255,7 @@ main { } #tags > a, #categories > a { - font-size: 14px; + font-size: 0.9rem; color: #fff; padding: 4px 8px; border-radius: 20px; From 52b4ace8e84a81d654216f30f4796753f069ee34 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:33:38 +0200 Subject: [PATCH 2/8] Justified text alignment --- assets/css/main.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/main.scss b/assets/css/main.scss index 77c535c..5ca20f8 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -44,6 +44,7 @@ body { color: $c-font; font-family: "Raleway", sans-serif; line-height: 1.5; + text-align: justify; @media (prefers-color-scheme: dark) { background-color: $c-bg-inv; From 5f49406e0f649b2c4f842157c1329e2a177b2a69 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:34:21 +0200 Subject: [PATCH 3/8] Updated theme configuration --- theme.toml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/theme.toml b/theme.toml index ee32682..79f5773 100644 --- a/theme.toml +++ b/theme.toml @@ -1,14 +1,11 @@ -# theme.toml template for a Hugo theme -# See https://github.com/gohugoio/hugoThemes#themetoml for an example - name = "nextDESIGN" license = "MIT" -licenselink = "https://gitlab.com/mmk2410/nextDESIGN/blob/master/LICENSE" +licenselink = "https://gitlab.com/mmk2410/nextDESIGN/blob/main/LICENSE" description = "Simple design created for mmk2410.org" homepage = "https://mmk2410.org/" tags = [] features = [] -min_version = "0.41.0" +min_version = "0.87.0" [author] name = "Marcel Kapfer" From b1da97ed3d85cc58d5a5d0ead519a3fb7ab88fe3 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:34:57 +0200 Subject: [PATCH 4/8] Adjusted font sizes --- layouts/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index b88a3b7..ecc1fc7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ {{ .Content }} -

Read more from me

+

Read more from me

{{ with .Site.GetPage "/about" }} More about me @@ -20,7 +20,7 @@ My projects {{ end }} -

Find me on other places

+

Find me on other places

{{ with .OutputFormats.Get "rss" }} RSS Feed @@ -38,7 +38,7 @@ Repos on GitLab {{- end -}} -

Latest Post

+

Latest Posts

{{ range first 3 .Site.RegularPages }}
From 624575b430735459028cb62c44f97cf345eb2660 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:35:37 +0200 Subject: [PATCH 5/8] Make "read more posts" link on main page a button --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index ecc1fc7..09862b5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -48,6 +48,6 @@ {{ end }} {{ with .Site.GetPage "/blog" }} - Read more posts + Read more posts {{ end }} {{ end }} From b4cf893d6fdfdfc1777e2d16f255bf028fc259b6 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:36:10 +0200 Subject: [PATCH 6/8] Get about text through variables The about line beneth the headline on the start page was fixed. Now the content of the params.about variables is used. --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 09862b5..9c61cbd 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" }}

{{ .Site.Title }}

-

I compose music and write stuff

+

{{ .Site.Params.about }}

{{ .Content }} From cbc79dbe7f97ba7dc4413c3750be87e05febeeba Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:37:35 +0200 Subject: [PATCH 7/8] Rework "commenting" system Until now the commenting system was a line in a small font advising to write a mail for commenting. This change replaces the text with one that is maybe more engaging and adds a button a la Kev Quirk. See also: https://kevq.uk/adding-the-post-title-to-my-reply-by-email-button/ --- assets/css/main.scss | 12 +++++++++--- layouts/_default/single.html | 9 +++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 5ca20f8..7985295 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -31,6 +31,7 @@ $s-content: 1000px; $s-nav-title: 24px; $s-border: 2px; $s-border-radius: 2px; +$s-comment-margin-top: 60px; $s-font-size: 18px; $p-box-shadow: 1px 1px 5px #888; @@ -250,9 +251,14 @@ main { } } - .comment-notice { - margin-top: 50px; - font-size: 14px; + .comment { + font-size: 0.95rem; + margin-top: $s-comment-margin-top; + text-align: center; + + a { + font-size: 1.1rem; + } } #tags > a, #categories > a { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ece5c43..ca2117a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -21,9 +21,10 @@

{{ .Content }} - {{ with .Site.Params.comment.commentmail }} -

- If you would like to comment on this post, feel free to write me a mail at {{ . }}! -

+ {{ if .Site.Params.comment.comments }} +
+

I would like to hear what you think about this post. Feel free to write me a mail!

+ Reply by mail +
{{ end }} {{ end }} From 8ae51c55f7abf643a3caec691a2483418a69bf38 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:39:42 +0200 Subject: [PATCH 8/8] Add CHANGELOG file and updated LICENSE years --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ LICENSE | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..92e7119 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,27 @@ +# nextDESIGN v9 + +## Version 9.4 (2021-08-18) + +- Adjusted font sizes +- Justified text alignment +- Make "read more posts" link on main page a button +- Get about text through variable +- Rework "commenting" system + +## Version 9.3 (2021-05-04) + +- Added Plausible analytics script +- Switched monospace font from Hermit to JetBrains Mono + +## Version 9.2 (2020-09-23) + +- Provide dark color scheme + +## Version 9.1.1 (2020-08-29) + +- Add link to Gitea +- Reorder "other places" section + +## Version 9.1 (2020-05-15) + +- Initial release diff --git a/LICENSE b/LICENSE index b3b18bb..00a39a9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Marcel Kapfer +Copyright (c) 2020-2021 Marcel Kapfer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in