Compare commits

...

34 Commits
v0.1.1 ... main

Author SHA1 Message Date
Marcel Kapfer 4751005c7e
Switch from Plausible to GoatCounter 2024-02-27 20:04:54 +01:00
Marcel Kapfer 5833a8ede8
🔥 Remove "Support Ukraine" banner
Not  because it  is  "old".  But because,  sadly,  there  are so  many
cruelties going  on at  the moment  that it no  longer feels  right to
highlight just one. And making every page  of this site a long list of
current disasters is also not a good way forward.

Let's all hope for a brighter tomorrow!
2023-12-05 21:20:00 +01:00
Marcel Kapfer a27b27c3b9
🔥 (Home) Remove button for scribbles 2023-12-05 21:17:12 +01:00
Marcel Kapfer 3f863a8b8f
🎉 (Home) Add button for scribbles 2023-09-24 13:18:27 +02:00
Marcel Kapfer 22ae1ffe3d
💄 Underline body text links 2023-05-22 18:41:12 +02:00
Marcel Kapfer 1d76e91a93
💄 Move "Support Ukraine" box to bottom of page 2023-05-22 18:09:10 +02:00
Marcel Kapfer 78a150b86e
Add support for ukraine info on every page 2022-03-06 16:30:31 +01:00
Marcel Kapfer 6c9ebed829
Fixed display of post excerpts
Missing p tag
2022-03-06 16:30:06 +01:00
Marcel Kapfer 6f5774a476
Adjust font color contrast in dark theme 2022-02-24 18:33:04 +01:00
Marcel Kapfer 36607ec9b0
Adjust font color contrast in dark theme 2022-02-24 18:25:07 +01:00
Marcel Kapfer 2f265b8443
Give code boxes and images a slight round border 2022-02-24 18:18:37 +01:00
Marcel Kapfer 28b523bb17
Adjust font color contrast in dark theme 2022-02-24 18:14:52 +01:00
Marcel Kapfer e24338ae0e
Slight updated design 2022-02-22 17:34:43 +01:00
Marcel Kapfer 607aa88f00
Release preparations for 9.4.2 2021-08-20 21:37:58 +02:00
Marcel Kapfer 8cb84d4425
Decrease content width a little bit 2021-08-20 21:36:08 +02:00
Marcel Kapfer eccc60812f
Center text of comment system 2021-08-20 11:11:34 +02:00
Marcel Kapfer 39ede47dd8
Release preparations for 9.4.1 2021-08-19 10:51:53 +02:00
Marcel Kapfer a49f488451
Only align paragraphs justified 2021-08-19 10:44:36 +02:00
Marcel Kapfer c3c8d5936a
Added README file 2021-08-19 10:44:23 +02:00
Marcel Kapfer 86ad0801cd
Comments: use variable for email address 2021-08-19 10:36:47 +02:00
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
Marcel Kapfer 252c7e68c5
Switched from Hermit to JetBrains Mono (main.scss) 2021-05-04 20:57:58 +02:00
Marcel Kapfer b745e30d94
Replace Hermit with JetBrains Mono (fonts.css) 2021-05-04 20:50:14 +02:00
Marcel Kapfer bcfe4ca920
Replace Hermit with JetBrains Mono (font files) 2021-05-04 20:44:48 +02:00
Marcel Kapfer 84dd6e8b19
Add Plausibly analytics script 2021-05-04 20:44:29 +02:00
Marcel Kapfer 77fa67db92
Provide dark color scheme 2020-09-23 21:19:33 +02:00
Marcel Kapfer 115d1f3522
Added missing charset definition 2020-08-30 01:22:39 +02:00
22 changed files with 315 additions and 104 deletions

37
CHANGELOG.md Normal file
View File

@ -0,0 +1,37 @@
# nextDESIGN v9
## Version 9.4.2 (2021-08-20)
- Slight improvements to reply button
- Decrease content width a bit
## Version 9.4.1 (2021-08-19)
- Use variable for mail address in comments
- Only align paragraphs justified, not other elements e.g. headlines
## 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)
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

4
README.md Normal file
View File

@ -0,0 +1,4 @@
# nextDESIGN
Since around 2013 (with a break from early 2016 und mid 2020 when I was using Wordpress) the web designs/themes used for my personal side are call "nextDESIGN".
The current iteration is version 9 and is build as a theme for the [Hugo static site generator](https://gohugo.io/).

View File

@ -3,7 +3,7 @@
* nextDESIGN is a personal web design for mmk2410.org.
* The current version (v9) is focused in simplicity and minimalism.
*
* 2020 © Marcel Kapfer <opensource@mmk2410.org>
* 2020-2022 © Marcel Kapfer <opensource@mmk2410.org>
* Licensed under the MIT License
*/
@ -12,44 +12,65 @@
***************/
$c-bg: #fafafa;
$c-bg-inv: #333;
$c-bg-main: #fff;
$c-bg-main-inv: #222;
$c-primary: #4d3c9b;
$c-bg-category: #4d3c9b;
$c-primary-inv: #ad9bff;
$c-bg-category-inv: #755bf0;
$c-bg-tag: #8171c8;
$c-bg-tag-inv: #a49ccc;
$c-font: #333;
$c-nav-font: #f4f4f4;
$c-btn-font: $c-nav-font;
$c-font-inv: #fafafa;
$c-btn-font: $c-font;
$c-btn-bg: $c-bg-category;
$c-btn-shadow: #aaa;
$c-btn-shadow-inv: #000;
$s-content: 1000px;
$s-nav-title: 24px;
$s-content: 800px;
$s-nav-title: 36px;
$s-border: 2px;
$s-border-radius: 2px;
$s-comment-margin-top: 60px;
$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;
font-family: "Raleway", sans-serif;
line-height: 1.5;
@media (prefers-color-scheme: dark) {
background-color: $c-bg-inv;
color: $c-font-inv;
}
}
body > header {
align-items: center;
color: $c-nav-font;
color: $c-font;
display: flex;
background-color: $c-primary;
justify-content: space-between;
padding: 20px 40px;
#title {
color: $c-font;
font-size: $s-nav-title;
font-weight: 700;
text-decoration: underline;
text-decoration-color: $c-primary;
text-decoration-thickness: 5px;
}
a {
color: $c-nav-font;
color: $c-primary;
text-decoration: none;
&:hover {
@ -60,6 +81,31 @@ body > header {
nav {
display: inline;
a {
text-transform: capitalize;
padding: 5px 6px;
display: inline-block;
&:hover {
text-decoration: none;
&:after {
width: 100%;
background: $c-primary;
}
}
&:after {
content: "";
display: block;
margin: auto;
height: 2px;
width: 0;
background: 0 0;
transition: width .25s ease, background-color .25s ease;
}
}
ul {
margin: 0;
padding: 0;
@ -67,7 +113,6 @@ body > header {
li {
display: inline;
padding-right: 10px;
&:last-child {
padding-right: 0;
@ -82,15 +127,24 @@ body > header {
padding: 10px;
text-align: center;
width: 100%;
color: $c-primary;
font-weight: bold;
text-transform: uppercase;
@media (prefers-color-scheme: dark) {
color: $c-primary-inv;
}
}
input[type=checkbox] {
display: none
}
@media screen and (max-width: 1000px) {
@media screen and (max-width: 1100px) {
border-radius: initial;
flex-direction: column;
background: $c-bg-main;
padding-bottom: 0;
nav {
display: none;
@ -120,31 +174,64 @@ body > header {
display: block;
}
}
@media (prefers-color-scheme: dark) {
background: $c-bg-inv;
a {
color: $c-primary-inv;
}
#title {
color: $c-font-inv;
text-decoration-color: $c-primary-inv;
}
nav {
a {
&:hover {
&:after {
background: $c-primary-inv;
}
}
}
}
}
}
main {
background-color: $c-bg-main;
border: solid $s-border $c-primary;
border-radius: 25px;
box-shadow: $p-box-shadow;
margin: 100px auto;
max-width: 1000px;
padding: 40px;
margin: 50px auto 100px;
max-width: $s-content;
padding: 20px 60px 80px;
@media (prefers-color-scheme: dark) {
background-color: $c-bg-main-inv;
box-shadow: none;
}
article {
margin: 40px 0;
}
h1, h2 {
font-size: 3em;
font-size: 3rem;
margin: 20px 0 0;
padding: 0;
text-decoration: underline;
text-decoration-color: $c-primary;
text-decoration-thickness: 4px;
@media (prefers-color-scheme: dark) {
text-decoration-color: $c-primary-inv;
}
}
h2 {
font-size: 2em;
font-size: 2rem;
margin: 40px 0 0;
text-decoration-thickness: 3px;
@ -152,23 +239,44 @@ main {
color: $c-font;
text-decoration-color: $c-primary;
@media (prefers-color-scheme: dark) {
color: $c-font-inv;
text-decoration-color: $c-primary-inv;
}
&:hover {
text-decoration: none;
}
}
}
h3 {
font-size: 1.3rem;
}
h4 {
font-size: 1.1rem;
}
figure {
margin: 0;
img {
width: 100%
width: 100%;
border-radius: 20px;
}
}
p {
text-align: justify;
}
a {
color: $c-primary;
text-decoration: none;
@media (prefers-color-scheme: dark) {
color: $c-primary-inv;
}
&:hover {
text-decoration: underline;
@ -176,20 +284,35 @@ main {
}
code {
font-family: "Hermit", monospace;
font-family: "JetBrains Mono", monospace;
}
.btn {
color: $c-btn-font;
background: $c-btn-bg;
padding: 8px 16px;
border: 1px solid $c-primary;
padding: 8px 12px;
border-radius: 20px;
line-height: 3;
white-space: nowrap;
transition: all 0.15s;
margin-right: 5px;
text-decoration: none;
&:hover {
box-shadow: $c-btn-shadow 1px 2px 6px;
text-decoration: none;
@media (prefers-color-scheme: dark) {
box-shadow: $c-btn-shadow-inv 1px 2px 6px;
}
}
@media (prefers-color-scheme: dark) {
border-color: $c-primary-inv;
}
}
.highlight > pre {
border-radius: 2px;
border-radius: 20px;
overflow-y: auto;
padding: 20px;
}
@ -207,46 +330,88 @@ main {
}
}
.comment-notice {
margin-top: 50px;
font-size: 14px;
.comment {
margin-top: $s-comment-margin-top;
text-align: center;
a {
font-size: 1.1rem;
}
p {
font-size: 0.95rem;
text-align: center;
}
}
#tags > a, #categories > a {
font-size: 14px;
font-size: 0.9rem;
color: #fff;
padding: 4px 8px;
border-radius: 20px;
white-space: nowrap;
transition: all 0.15s;
text-decoration: none;
&:hover {
box-shadow: $c-btn-shadow 1px 1px 4px;
text-decoration: none;
@media (prefers-color-scheme: dark) {
box-shadow: $c-btn-shadow-inv 1px 1px 4px;
}
}
}
#tags > a {
background: $c-bg-tag;
color: $c-bg-tag;
border: 1px solid $c-bg-tag;
@media (prefers-color-scheme: dark) {
color: $c-bg-tag-inv;
border-color: $c-bg-tag-inv;
}
}
#categories > a {
background: $c-bg-category;
color: $c-primary;
border: 1px solid $c-primary;
margin-right: 3px;
@media (prefers-color-scheme: dark) {
color: $c-primary-inv;
border: 1px solid $c-primary-inv;
}
}
@media screen and (max-width: 1000px) {
@media screen and (max-width: 1100px) {
border: none;
box-shadow: none;
margin: 0 auto;
padding: 0 20px 80px;
.tagories {
text-align: left;
}
#tags a, #categories a {
line-height: 35px;
}
}
}
footer {
background-color: $c-primary;
color: $c-nav-font;
background-color: $c-font;
color: $c-font-inv;
padding: 40px;
text-align: center;
a {
color: $c-nav-font;
color: $c-font-inv;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
}

View File

@ -1,29 +1,32 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<p id="date">{{.Date.Format "2006-01-02"}}</p>
<p>{{ .WordCount }} words, ~ {{ .ReadingTime }} min reading time</p>
<h1>{{ .Title }}</h1>
<p id="date">{{.Date.Format "2006-01-02"}}</p>
<p>{{ .WordCount }} words, ~ {{ .ReadingTime }} min reading time</p>
<p>
{{ with .Params.categories }}
<span id="categories">
{{ range . }}
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
{{ with .Params.tags }}
<span id="tags">
{{ range . }}
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
</p>
{{ .Content }}
{{ with .Site.Params.comment.commentmail }}
<p class="comment-notice">
If you would like to comment on this post, feel free to write me a mail at {{ . }}!
</p>
<p>
<div class="tagories">
{{ with .Params.categories }}
<span id="categories">
{{ range . }}
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
{{ with .Params.tags }}
<span id="tags">
{{ range . }}
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
</div>
</p>
{{ .Content }}
{{ if isset .Site.Params.comment "mail" }}
<div class="comment">
<p>I would like to hear what you think about this post. Feel free to write me a mail!</p>
<a class="btn" href="mailto:{{ .Site.Params.comment.mail }}?subject=Reply to: &quot;{{ .Page.Title }}&quot;">Reply by mail</a>
</div>
{{ end }}
{{ end }}

View File

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

View File

@ -1,3 +1,4 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width">
{{ if .IsHome -}}
@ -29,3 +30,5 @@
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ .Site.BaseURL }}/favicon/favicon-72.png">
<link rel="apple-touch-icon-precomposed" href="{{ .Site.BaseURL }}/favicon/favicon.png">
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/favicon/favicon.png">
<script data-goatcounter="https://stats.mmk2410.org/count" async src="https://stats.mmk2410.org/count.js"></script>

View File

@ -1,21 +1,27 @@
<p id="date">{{.Date.Format "2006-01-02"}}</p>
<p>
<div class="tagories">
{{ with .Params.categories }}
<span id="categories">
{{ range . }}
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
<span id="categories">
{{ range . }}
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
{{ with .Params.tags }}
<span id="tags">
{{ range . }}
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
<span id="tags">
{{ range . }}
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
</div>
</p>
{{ .Summary }}
<p>
{{ .Summary }}
</p>
{{- if .Truncated -}}
<p><a href="{{.Permalink}}">Read more</a></p>
<p><a href="{{.Permalink}}">Read more</a></p>
{{- end -}}

View File

@ -40,45 +40,41 @@
}
/**************
* Hermit
* JetBrains Mono
**************/
/* hermit */
/* JetBrains Mono Regular */
@font-face {
font-family: 'Hermit';
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
src: local('Hermit'),
url('/fonts/Hermit-Regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/Hermit-Regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
src: local('JetBrains Mono'),
url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
}
/* hermit italic */
/* JetBrains Mono Regular Italic */
@font-face {
font-family: 'Hermit';
font-family: 'JetBrains Mono';
font-style: italic;
font-weight: 400;
src: local('Hermit'),
url('/fonts/Hermit-RegularItalic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/Hermit-RegularItalic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
src: local('JetBrains Mono Italic'),
url('/fonts/JetBrainsMono-RegularItalic.woff2') format('woff2');
}
/* hermit bold */
/* JetBrains Mono Bold */
@font-face {
font-family: 'Hermit';
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 700;
src: local('Hermit'),
url('/fonts/Hermit-Bold.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/Hermit-Bold.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
src: local('JetBrains Mono Bold'),
url('/fonts/JetBrainsMono-Bold.woff2') format('woff2');
}
/* hermit bold italic */
/* JetBrains Mono Bold Italic italic */
@font-face {
font-family: 'Hermit';
font-family: 'JetBrains Mono';
font-style: italic;
font-weight: 700;
src: local('Hermit'),
url('/fonts/Hermit-BoldItalic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/Hermit-BoldItalic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
src: local('JetBrains Mono Bold Italic'),
url('/fonts/JetBrainsMono-BoldItalic.woff2') format('woff2');
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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