Add weeknotes layout and update various titles for consistency

This commit is contained in:
Fundor333
2025-04-05 01:10:04 +02:00
parent 3fb3c85748
commit 3b16b3ac64
8 changed files with 52 additions and 14 deletions

View File

@@ -6,6 +6,7 @@ enableRobotsTXT: true
fediverseAccount: "@fundor333@mastodon.social"
ignoreLogs:
- "warning-goldmark-raw-html"
goToTop: true
module:
imports:

View File

@@ -15,10 +15,6 @@ main:
name: "Photos"
url: "/photos"
weight: 25
- pageRef: "https://newsletter.digitaltearoom.com/"
name: "Newsletter"
url: "https://newsletter.digitaltearoom.com/"
weight: 27
- pageRef: "/feeds"
name: "Feeds"
url: "/feeds"
@@ -28,6 +24,6 @@ main:
url: "/now"
weight: 40
- pageRef: "/uses"
name: "Kit"
name: "Uses"
url: "/uses"
weight: 50

View File

@@ -1,5 +1,5 @@
---
title: "feeds"
title: "Feeds"
specialpost: true
type: page
date: 2000-08-20T12:00:00+02:00
@@ -15,3 +15,4 @@ You can follow me here:
* [All stuff from my blog](/index.xml)
* [All my post from my blog](/post/index.xml)
* [All my photo from my blog](/photos/index.xml)
* [My personal Newsletter](https://newsletter.digitaltearoom.com/index.xml)

View File

@@ -1,5 +1,5 @@
---
title: "now"
title: "Now"
type: now
specialpost: true
date: 2000-08-20T12:00:00+02:00

View File

@@ -1,5 +1,5 @@
---
title: "uses"
title: "Uses"
type: page
specialpost: true
aliases:

View File

@@ -0,0 +1,4 @@
---
title: "WeekNote"
specialpost: true
---

View File

@@ -8,7 +8,7 @@
{{ else if eq .Type "photos" }}
<i class="fa-regular fa-camera-retro"></i>
{{ else if eq .Type "weeknote" }}
<i class="fa-regular fa-alien-8bit"></i>
<i class="fa-regular fa-bowl-chopsticks-noodles"></i>
{{ else }}
<i class="fa-regular fa-cookie-bite"></i>
{{ end}}

View File

@@ -0,0 +1,36 @@
{{ define "main" }}
<div class="wrapper post">
<main class="page-content" aria-label="Content">
<article class="h-entry">
<header class="header">
<h1 class="header-title p-name"><i class="fa-regular fa-bowl-chopsticks-noodles"></i> {{ .Title }}</h1>
<div>
<a class="u-url" href="{{ .Permalink }}"><div style="display: none;" class="p-summary">{{ .Description }}</div></a>
<a rel="author" class="p-author h-card no-underline " href="{{ .Site.BaseURL }}" style="display: none;" >{{ .Site.Params.Author.name }}</a>
</div>
<br>
{{ $image := .Resources.GetMatch "{cover.webp,cover.jpg,cover.png,cover.jpeg}" }}
{{ if $image }}
<div class="container-fluid text-justify">
{{ $resource := imageConfig (add "/content/" $image.RelPermalink) }}
<div class="flex flex-col items-stretch">
<img loading="lazy" class="u-photo rounded-lg" src="{{ $image.Permalink }}"alt="Card image cap">
{{if .Params.feature_link}}
<a class="self-center" href="{{ .Params.feature_link}}">{{.Params.feature_text}}</a>
{{end}}
</div>
{{end}}
</header>
{{ partial "toc.html" .}}
<div class="page-content e-content">
{{- partial "bridgy.html" . -}}
{{ .Content }}
</div>
{{- partial "syndication.html" . -}}
{{- partial "comments.html" . -}}
</article>
</main>
</div>
{{ end }}