Initial commit

This commit is contained in:
Marcel Kapfer 2020-05-15 20:17:59 +02:00
commit e9839679e6
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
31 changed files with 911 additions and 0 deletions

20
LICENSE Normal file
View file

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2020 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
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2
archetypes/default.md Normal file
View file

@ -0,0 +1,2 @@
+++
+++

252
assets/css/main.scss Normal file
View file

@ -0,0 +1,252 @@
/* nextDESIGN v9
*
* 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>
* Licensed under the MIT License
*/
/***************
* Variables
***************/
$c-bg: #fafafa;
$c-bg-main: #fff;
$c-primary: #4d3c9b;
$c-bg-category: #4d3c9b;
$c-bg-tag: #8171c8;
$c-font: #333;
$c-nav-font: #f4f4f4;
$c-btn-font: $c-nav-font;
$c-btn-bg: $c-bg-category;
$s-content: 1000px;
$s-nav-title: 24px;
$s-border: 2px;
$s-border-radius: 2px;
$p-box-shadow: 1px 1px 5px #888;
body {
background-color: $c-bg;
color: $c-font;
font-family: "Raleway", sans-serif;
line-height: 1.5;
}
body > header {
align-items: center;
color: $c-nav-font;
display: flex;
background-color: $c-primary;
justify-content: space-between;
padding: 20px 40px;
#title {
font-size: $s-nav-title;
font-weight: 700;
}
a {
color: $c-nav-font;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
nav {
display: inline;
ul {
margin: 0;
padding: 0;
float: right;
li {
display: inline;
padding-right: 10px;
&:last-child {
padding-right: 0;
}
}
}
}
.show-menu {
display: none;
margin-top: 10px;
padding: 10px;
text-align: center;
width: 100%;
}
input[type=checkbox] {
display: none
}
@media screen and (max-width: 1000px) {
border-radius: initial;
flex-direction: column;
nav {
display: none;
text-align: center;
width: 100%;
ul {
float: unset;
li {
display: block;
padding: 0;
a {
display: block;
padding: 10px 0;
}
}
}
}
.show-menu {
display: block;
}
input[type=checkbox]:checked ~ nav {
display: block;
}
}
}
main {
background-color: $c-bg-main;
border: solid $s-border $c-primary;
box-shadow: $p-box-shadow;
margin: 100px auto;
max-width: 1000px;
padding: 40px;
article {
margin: 40px 0;
}
h1, h2 {
font-size: 3em;
margin: 20px 0 0;
padding: 0;
text-decoration: underline;
text-decoration-color: $c-primary;
text-decoration-thickness: 4px;
}
h2 {
font-size: 2em;
margin: 40px 0 0;
text-decoration-thickness: 3px;
a {
color: $c-font;
text-decoration-color: $c-primary;
&:hover {
text-decoration: none;
}
}
}
figure {
margin: 0;
img {
width: 100%
}
}
a {
color: $c-primary;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
code {
font-family: "Hermit", monospace;
}
.btn {
color: $c-btn-font;
background: $c-btn-bg;
padding: 8px 16px;
border-radius: 20px;
line-height: 3;
white-space: nowrap;
}
.highlight > pre {
border-radius: 2px;
overflow-y: auto;
padding: 20px;
}
.pagination {
text-align: center;
}
.page-item {
display: inline;
padding-right: 10px;
&:last-child {
padding-right: 0;
}
}
.comment-notice {
margin-top: 50px;
font-size: 14px;
}
#tags > a, #categories > a {
font-size: 14px;
color: #fff;
padding: 4px 8px;
border-radius: 20px;
white-space: nowrap;
}
#tags > a {
background: $c-bg-tag;
}
#categories > a {
background: $c-bg-category;
}
@media screen and (max-width: 1000px) {
border: none;
box-shadow: none;
margin: 0 auto;
}
}
footer {
background-color: $c-primary;
color: $c-nav-font;
padding: 40px;
text-align: center;
a {
color: $c-nav-font;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}

0
layouts/404.html Normal file
View file

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="{{ .Language.Lang }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
{{- partial "header.html" . -}}
<main>
{{- block "main" . }}{{- end }}
</main>
<footer>
{{- partial "footer.html" . -}}
</footer>
</body>
</html>

View file

@ -0,0 +1,11 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<article>
{{ range .Paginator.Pages }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ partial "list-post.html" . }}
{{ end }}
</article>
{{ template "_internal/pagination.html" . }}
{{ end }}

View file

@ -0,0 +1,29 @@
{{ define "main" }}
<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>
{{ end }}
{{ end }}

52
layouts/index.html Normal file
View file

@ -0,0 +1,52 @@
{{ define "main" }}
<header>
<h1>{{ .Site.Title }}</h1>
<h3>I compose music and write stuff</h3>
</header>
{{ .Content }}
<h3>Read more from me</h3>
{{ with .Site.GetPage "/about" }}
<a class="btn" href="{{ .Permalink }}">More about me</a>
{{ end }}
{{ with .Site.GetPage "/blog" }}
<a class="btn" href="{{ .Permalink }}">My blog</a>
{{ end }}
{{ with .Site.GetPage "/projects" }}
<a class="btn" href="{{ .Permalink }}">My projects</a>
{{ end }}
<h3>Find me on other places</h3>
{{ with .Site.Params.social.mastodon }}
<a class="btn" href="{{ . }}">Mastodon</a>
{{- end -}}
{{ with .Site.Params.social.twitter }}
<a class="btn" href="{{ . }}">Twitter</a>
{{- end -}}
{{ with .Site.Params.social.git }}
<a class="btn" href="{{ . }}">Git Repos</a>
{{- end -}}
{{ with .OutputFormats.Get "rss" }}
<a class="btn" href="{{ .Permalink }}">RSS</a>
{{- end -}}
<h2>Latest Post</h2>
{{ range first 3 .Site.RegularPages }}
<article>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
{{ partial "list-post.html" . }}
</article>
{{ end }}
{{ with .Site.GetPage "/blog" }}
<a href="{{ .Permalink }}">Read more posts</a>
{{ end }}
{{ end }}

View file

@ -0,0 +1,16 @@
<p>
{{ with .Site.Params.copyrighthtml }}
{{ . | safeHTML }}
{{ end }}
</p>
{{ with .Site.GetPage "/imprint" }}
<p>
<a href="{{ .Permalink }}">{{ .Site.Params.imprinttext }}</a>
</p>
{{ end }}
<p>Last updated: {{ .Lastmod.Format "2006-01-02" }}
{{ $giturl := .Site.Params.giturl }}
{{- with .GitInfo }}
(<a href="{{ $giturl }}" target="_blank">{{ .AbbreviatedHash }}</a>)
{{- end -}}
</p>

View file

@ -0,0 +1,31 @@
<meta name="viewport" content="width=device-width">
{{ if .IsHome -}}
<title>{{ .Site.Title }}</title>
{{- else -}}
<title>{{ .Site.Title }} - {{ .Title }}</title>
{{- end }}
<meta name="author" content='{{ delimit .Site.Author ", " }}' />
<meta name="description" content="{{ .Description }}" />
<meta name="keywords" content="{{ delimit .Keywords ", " }}" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/normalize.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/fonts.css">
{{- $style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{- template "_internal/opengraph.html" . }}
{{- template "_internal/twitter_cards.html" . -}}
<link rel="apple-touch-icon-precomposed" sizes="256x256" href="{{ .Site.BaseURL }}/favicon/favicon-256.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ .Site.BaseURL }}/favicon/favicon-144.png">
<link rel="apple-touch-icon-precomposed" sizes="128x128" href="{{ .Site.BaseURL }}/favicon/favicon-128.png">
<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">

View file

@ -0,0 +1,14 @@
<header>
<a id="title" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
<label for="show-menu" class="show-menu">Menu</label>
<input type="checkbox" id="show-menu" role="button">
<nav>
<ul>
{{ range .Site.Menus.main }}
<li>
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</nav>
</header>

View file

@ -0,0 +1,21 @@
<p id="date">{{.Date.Format "2006-01-02"}}</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>
{{ .Summary }}
{{- if .Truncated -}}
<p><a href="{{.Permalink}}">Read more</a></p>
{{- end -}}

84
static/css/fonts.css Normal file
View file

@ -0,0 +1,84 @@
/**************
* Raleway
**************/
/* raleway-regular - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: local('Raleway'), local('Raleway-Regular'),
url('/fonts/raleway-v14-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/raleway-v14-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 400;
src: local('Raleway Italic'), local('Raleway-Italic'),
url('/fonts/raleway-v14-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/raleway-v14-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-700 - latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
src: local('Raleway Bold'), local('Raleway-Bold'),
url('/fonts/raleway-v14-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/raleway-v14-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* raleway-700italic - latin */
@font-face {
font-family: 'Raleway';
font-style: italic;
font-weight: 700;
src: local('Raleway Bold Italic'), local('Raleway-BoldItalic'),
url('/fonts/raleway-v14-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('/fonts/raleway-v14-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/**************
* Hermit
**************/
/* hermit */
@font-face {
font-family: 'Hermit';
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+ */
}
/* hermit italic */
@font-face {
font-family: 'Hermit';
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+ */
}
/* hermit bold */
@font-face {
font-family: 'Hermit';
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+ */
}
/* hermit bold italic */
@font-face {
font-family: 'Hermit';
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+ */
}

349
static/css/normalize.css vendored Normal file
View file

@ -0,0 +1,349 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}

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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

15
theme.toml Normal file
View file

@ -0,0 +1,15 @@
# 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"
description = "Simple design created for mmk2410.org"
homepage = "https://mmk2410.org/"
tags = []
features = []
min_version = "0.41.0"
[author]
name = "Marcel Kapfer"
homepage = "https://mmk2410.org"