taxonomies (categories, tags, year/month/slug), syntax.css und Blog (posts).

This commit is contained in:
Franz Klotsche
2025-11-22 18:50:09 +01:00
parent dc0b5d8cfc
commit 230912cb0c
100 changed files with 4699 additions and 290 deletions

View File

@@ -0,0 +1,13 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ .Content }}
{{ range .Data.Terms.Alphabetical }}
<p class="tag">
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
<span class="count">({{ .Count }})</span>
</p>
{{ end }}
{{ end }}

View File

@@ -0,0 +1,9 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ range .Pages }}
<h4><a href="{{ .RelPermalink }}">{{ .Title }}
</a></h4>
{{ end }}
{{ end }}

View File

@@ -0,0 +1,8 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ range .Pages }}
{{ partial "post_summary.html" . }}
{{ end }}
{{ end }}

View File

@@ -0,0 +1,13 @@
{{ define "main" }}
<h2>{{ .Title }} #</h2>
{{ .Content }}
{{ range .Data.Terms.Alphabetical }}
<p class="tag">
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
<span class="count">({{ .Count }})</span>
</p>
{{ end }}
{{ end }}

View File

@@ -0,0 +1,8 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ range .tags }}
list of description of what a tag is about?
{{ end }}
{{ end }}

View File

@@ -0,0 +1,8 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ range .Pages }}
{{ partial "post_summary.html" . }}
{{ end }}
{{ end }}

View File

@@ -1,10 +1,18 @@
{{ define "main" }}
{{ .Content }}
<h3>Projekt</h3>
<p>Das letzte Projekt was aktualisiert wurde:
{{ range first 1 (where .Site.RegularPages "Type" "in" "projects").ByDate.Reverse }}
<h2>{{ .Date.Format "January" }} Blog-Posts</h2>
<p>
{{ range first 3 (where .Site.RegularPages "Type" "in" "posts").ByDate.Reverse }}
<ul>
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
</ul>
{{ end }}
</p>
{{ .Content }}
<h3>Projekt</h3>
<p>Das letzte Projekt was aktualisiert wurde:
{{ range first 1 (where .Site.RegularPages "Type" "in" "projects").ByDate.Reverse }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
</p>
{{ end }}
</p>
{{ end }}

View File

@@ -10,8 +10,11 @@
{{- else -}}
{{ .Site.Params.description }}
{{- end -}}">
<link rel="stylesheet" href="{{ "css/syntax.css"
| relURL }}">
<link rel="stylesheet" href="{{ "css/style.css"
| relURL }}">
<!-- RSS -->
{{ range .AlternativeOutputFormats -}}
{{- $link := `<link rel="%s" type="%s" href="%s" title="%s">` -}}
@@ -39,4 +42,37 @@
gtag('js', new Date());
gtag('config', 'G-TT2JW5ZYFZ');
</script>
<!--
<script>
var remark_config = {
host: "http://192.168.178.24:8080",
site_id: "remark",
locale: "de"
}
</script>-->
<script>
var remark_config = {
// Gebruik de nieuwe Railway URL
host: 'https://remark42hugo-neocities-org.up.railway.app',
// De site ID moet overeenkomen met de REMARK_SITE variabele
site_id: 'neocities',
locale: 'de',
allowAnon: true,
url: '{{ .Permalink }}',
theme: 'light'
};
// Laad de embed code vanaf de Railway host
(function(c) {
for(var i = 0; i < c.length; i++) {
var d = document, s = d.createElement('script');
s.src = c[i];
(d.head || d.body).appendChild(s);
}
})(['https://remark42hugo-neocities-org.up.railway.app/web/config.js',
'https://remark42hugo-neocities-org.up.railway.app/web/embed.js']);
</script>

View File

@@ -1,8 +1,9 @@
<nav>
<a href="/">Home</a>
<a href="/about">About</a>
<a href="/projects">Projects</a>
<a href="/presentations">Presentations</a>
<a href="/resume">Résumé</a>
<a href="/contact">Contact</a>
<a href="/">Start</a>
<a href="/about">Über mich</a>
<a href="/posts">Blog</a>
<a href="/projects">Projekte</a>
<a href="/presentations">Konzepte</a>
<a href="/resume">Lebenslauf</a>
<a href="/contact">Kontakt</a>
</nav>

View File

@@ -0,0 +1,14 @@
<article>
<header>
<h3>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h3>
<time>
{{ .Date | dateFormat "January" }}
{{ .Date | dateFormat "2" }}
</time>
</header>
{{ .Summary }}
</article>

View File

@@ -0,0 +1,10 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ range (.Paginator).Pages }}
{{ partial "post_summary.html" . }}
{{ end }}
{{ template "_internal/pagination.html" . }}
{{ end }}

View File

@@ -0,0 +1,60 @@
{{ define "main" }}
<article class="post">
<header>
<h2>{{ .Title }}</h2>
<p>
Von {{ .Params.Author }}
</p>
<p>
Veröffentlichung am {{ .Date.Format "2.01.2006" }}
<span class="tags">
in
{{- range .Params.tags }}
<a class="tag" href="/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
</p>
<p>
{{ math.Round (div (countwords .Content) 200.0) }} Minuten ({{ countwords .Content }} Wörter) bei 200 p/m
</p>
</header>
<section class="body">
{{ if isset .Params "image" }}
<img alt="{{ .Params.alt_text }}" src="{{ .Params.image }}">
{{ end }}
{{ .Content }}
</section>
<section class="related">
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>Mehr dazu</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
</section>
</article>
{{ if not .Params.disableComments }}
<!--term="{{ .Title }}"-->
<script src="https://giscus.app/client.js"
data-repo="kurrrioo/Frikandel-speciale"
data-repo-id="R_kgDOMeh49A"
data-category="Show and tell"
data-category-id="DIC_kwDOMeh49M4CyAGs"
data-mapping="title"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="light"
data-lang="de"
crossorigin="anonymous"
async>
</script>
{{ end }}
{{ end }}

View File

@@ -11,8 +11,9 @@
<section class="project">
<h2>{{ .Title }}</h2>
{{ .Content }}
{{ if isset .Params "image" }}
<img alt="{{ .Params.alt_text }}" src="{{ .Params.image }}">
{{ end }}
<h3>Tech used</h3>
<ul>
@@ -20,6 +21,10 @@
<li>{{ . }}</li>
{{ end }}
</ul>
{{ .Content }}
{{ if .Params.isCommentingProject }}
<div id="remark42"></div>
{{ end }}
</section>
</div>
{{ end }}
{{ end }}

View File

@@ -0,0 +1 @@
<abbr title="{{ .Get 1 }}">{{ .Get 0 }}</abbr>