Meta: Spring cleaning

Added syntax highlighting, remove font, many small improvements.
Hot fix font: Athelas shows weird symbols in Chrome.
This commit is contained in:
Jan Kremer 2024-04-01 22:42:52 +02:00
parent 138062aac8
commit f91ff03006
Signed by: jan
GPG key ID: A7DA689CB3B078EC
19 changed files with 74 additions and 54 deletions

View file

@ -1,16 +1,17 @@
{{ define "main" }}
{{ .Content }}
<h1>Neueste Beiträge</h1>
{{ $pages := .Paginate (where .Site.RegularPages "Type" "ne" "page") }}
{{ range $pages.Pages }}
<div class="list">
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format "2006-01-02" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<a href="{{ .RelPermalink }}" style="display:block">
<div class="list">
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format "2006-01-02" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
<h2>{{ .Title }}</h2>
<p class="lead">{{ .Description }}</p>
</div>
<p class="lead">{{ .Description }}</p>
</div>
</a>
{{ end }}
{{ end }}

View file

@ -1,14 +1,16 @@
{{ define "main" }}
{{ .Content }}
{{ range .Pages }}
<div class="list">
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format "2006-01-02" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<a href="{{ .RelPermalink }}" style="display:block">
<div class="list">
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format "2006-01-02" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
<h2>{{ .Title }}</h2>
<p class="lead">{{ .Description }}</p>
</div>
<p class="lead">{{ .Description }}</p>
</div>
</a>
{{ end }}
{{ end }}

View file

@ -1,2 +1,2 @@
<p><a href="https://creativecommons.org/licenses/by-sa/4.0/">BY-SA 4.0</a> &emsp;&emsp; {{ site.Title }} &emsp;
<p><a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA 4.0</a> &emsp;&emsp; {{ site.Title }} &emsp;
&emsp; 2021{{ now.Year }}</p>

View file

@ -1,6 +1,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
<meta charset="UTF-8">
<meta name="description" content="Blog von Jan Kremer">
<meta name="keywords" content="Blog">
<meta name="author" content="Jan Kremer">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
{{ partial "analytics.html" . }}