Compare commits

...

8 Commits

Author SHA1 Message Date
Marcel Kapfer 8ae51c55f7
Add CHANGELOG file and updated LICENSE years 2021-08-18 22:39:42 +02:00
Marcel Kapfer cbc79dbe7f
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/
2021-08-18 22:37:35 +02:00
Marcel Kapfer b4cf893d6f
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.
2021-08-18 22:36:10 +02:00
Marcel Kapfer 624575b430
Make "read more posts" link on main page a button 2021-08-18 22:35:37 +02:00
Marcel Kapfer b1da97ed3d
Adjusted font sizes 2021-08-18 22:34:57 +02:00
Marcel Kapfer 5f49406e0f
Updated theme configuration 2021-08-18 22:34:21 +02:00
Marcel Kapfer 52b4ace8e8
Justified text alignment 2021-08-18 22:33:38 +02:00
Marcel Kapfer f64f15984e
Adjusted font sizes 2021-08-18 22:32:56 +02:00
6 changed files with 66 additions and 21 deletions

27
CHANGELOG.md Normal file
View File

@ -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

View File

@ -1,6 +1,6 @@
The MIT License (MIT) 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 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 this software and associated documentation files (the "Software"), to deal in

View File

@ -31,14 +31,21 @@ $s-content: 1000px;
$s-nav-title: 24px; $s-nav-title: 24px;
$s-border: 2px; $s-border: 2px;
$s-border-radius: 2px; $s-border-radius: 2px;
$s-comment-margin-top: 60px;
$s-font-size: 18px;
$p-box-shadow: 1px 1px 5px #888; $p-box-shadow: 1px 1px 5px #888;
html {
font-size: $s-font-size;
}
body { body {
background-color: $c-bg; background-color: $c-bg;
color: $c-font; color: $c-font;
font-family: "Raleway", sans-serif; font-family: "Raleway", sans-serif;
line-height: 1.5; line-height: 1.5;
text-align: justify;
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
background-color: $c-bg-inv; background-color: $c-bg-inv;
@ -151,7 +158,7 @@ main {
} }
h1, h2 { h1, h2 {
font-size: 3em; font-size: 3rem;
margin: 20px 0 0; margin: 20px 0 0;
padding: 0; padding: 0;
text-decoration: underline; text-decoration: underline;
@ -164,7 +171,7 @@ main {
} }
h2 { h2 {
font-size: 2em; font-size: 2rem;
margin: 40px 0 0; margin: 40px 0 0;
text-decoration-thickness: 3px; text-decoration-thickness: 3px;
@ -183,6 +190,14 @@ main {
} }
} }
h3 {
font-size: 1.3rem;
}
h4 {
font-size: 1.1rem;
}
figure { figure {
margin: 0; margin: 0;
@ -236,13 +251,18 @@ main {
} }
} }
.comment-notice { .comment {
margin-top: 50px; font-size: 0.95rem;
font-size: 14px; margin-top: $s-comment-margin-top;
text-align: center;
a {
font-size: 1.1rem;
}
} }
#tags > a, #categories > a { #tags > a, #categories > a {
font-size: 14px; font-size: 0.9rem;
color: #fff; color: #fff;
padding: 4px 8px; padding: 4px 8px;
border-radius: 20px; border-radius: 20px;

View File

@ -21,9 +21,10 @@
</p> </p>
{{ .Content }} {{ .Content }}
{{ with .Site.Params.comment.commentmail }} {{ if .Site.Params.comment.comments }}
<p class="comment-notice"> <div class="comment">
If you would like to comment on this post, feel free to write me a mail at {{ . }}! <p>I would like to hear what you think about this post. Feel free to write me a mail!</p>
</p> <a class="btn" href="mailto:comment@mmk2410.org?subject=Reply to: &quot;{{ .Page.Title }}&quot;">Reply by mail</a>
</div>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,12 +1,12 @@
{{ define "main" }} {{ define "main" }}
<header> <header>
<h1>{{ .Site.Title }}</h1> <h1>{{ .Site.Title }}</h1>
<h3>I compose music and write stuff</h3> <h3>{{ .Site.Params.about }}</h3>
</header> </header>
{{ .Content }} {{ .Content }}
<h3>Read more from me</h3> <h4>Read more from me</h3>
{{ with .Site.GetPage "/about" }} {{ with .Site.GetPage "/about" }}
<a class="btn" href="{{ .Permalink }}">More about me</a> <a class="btn" href="{{ .Permalink }}">More about me</a>
@ -20,7 +20,7 @@
<a class="btn" href="{{ .Permalink }}">My projects</a> <a class="btn" href="{{ .Permalink }}">My projects</a>
{{ end }} {{ end }}
<h3>Find me on other places</h3> <h4>Find me on other places</h3>
{{ with .OutputFormats.Get "rss" }} {{ with .OutputFormats.Get "rss" }}
<a class="btn" href="{{ .Permalink }}">RSS Feed</a> <a class="btn" href="{{ .Permalink }}">RSS Feed</a>
@ -38,7 +38,7 @@
<a class="btn" href="{{ . }}">Repos on GitLab</a> <a class="btn" href="{{ . }}">Repos on GitLab</a>
{{- end -}} {{- end -}}
<h2>Latest Post</h2> <h2>Latest Posts</h2>
{{ range first 3 .Site.RegularPages }} {{ range first 3 .Site.RegularPages }}
<article> <article>
@ -48,6 +48,6 @@
{{ end }} {{ end }}
{{ with .Site.GetPage "/blog" }} {{ with .Site.GetPage "/blog" }}
<a href="{{ .Permalink }}">Read more posts</a> <a class="btn" href="{{ .Permalink }}">Read more posts</a>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,14 +1,11 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "nextDESIGN" name = "nextDESIGN"
license = "MIT" 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" description = "Simple design created for mmk2410.org"
homepage = "https://mmk2410.org/" homepage = "https://mmk2410.org/"
tags = [] tags = []
features = [] features = []
min_version = "0.41.0" min_version = "0.87.0"
[author] [author]
name = "Marcel Kapfer" name = "Marcel Kapfer"