feat: Add notes as post type
This commit is contained in:
111
config.toml
111
config.toml
@@ -9,79 +9,80 @@ googleAnalytics = ""
|
|||||||
preserveTaxonomyNames = true
|
preserveTaxonomyNames = true
|
||||||
|
|
||||||
[privacy]
|
[privacy]
|
||||||
# Google Analytics privacy settings - https://gohugo.io/about/hugo-and-gdpr/index.html#googleanalytics
|
# Google Analytics privacy settings - https://gohugo.io/about/hugo-and-gdpr/index.html#googleanalytics
|
||||||
[privacy.googleAnalytics]
|
[privacy.googleAnalytics]
|
||||||
# set to true to disable service
|
# set to true to disable service
|
||||||
disable = true
|
disable = true
|
||||||
# set to true to meet General Data Protection Regulation (GDPR)
|
# set to true to meet General Data Protection Regulation (GDPR)
|
||||||
anonymizeIP = true
|
anonymizeIP = true
|
||||||
respectDoNotTrack = true
|
respectDoNotTrack = true
|
||||||
useSessionStorage = true
|
useSessionStorage = true
|
||||||
|
|
||||||
[tracking]
|
[tracking]
|
||||||
[tracking.oxitraffic]
|
[tracking.oxitraffic]
|
||||||
enabled = true
|
enabled = true
|
||||||
hostname = "traffic.hyteck.de"
|
hostname = "traffic.hyteck.de"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
# Unmark to use post folder for images. Default is static folder.
|
# Unmark to use post folder for images. Default is static folder.
|
||||||
#usepostimgfolder = true
|
#usepostimgfolder = true
|
||||||
slogan = "Blog of Julian-Samuel Gebühr"
|
slogan = "Blog of Julian-Samuel Gebühr"
|
||||||
description = "Blog of Julian-Samuel Gebühr" # meta description
|
description = "Blog of Julian-Samuel Gebühr" # meta description
|
||||||
# You need to set author to have an author bio. If you have a writer in the markdown file it will override this.
|
# You need to set author to have an author bio. If you have a writer in the markdown file it will override this.
|
||||||
author = "Julian-Samuel Gebühr"
|
author = "Julian-Samuel Gebühr"
|
||||||
authorLink = "https://hyteck.de/"
|
authorLink = "https://hyteck.de/"
|
||||||
bio = [
|
bio = [
|
||||||
"Business Analyst for work, Developer for fun. Activist because it's necessary. He/Him"
|
"Business Analyst for work, Developer for fun. Activist because it's necessary. He/Him"
|
||||||
]
|
]
|
||||||
copyright = [
|
copyright = [
|
||||||
'© 2025 CC-BY Julian-Samuel Gebühr</a> '
|
'© 2025 CC-BY Julian-Samuel Gebühr</a> '
|
||||||
]
|
]
|
||||||
|
|
||||||
email = "julian-samuel@gebuehr.net"
|
email = "julian-samuel@gebuehr.net"
|
||||||
oxitraffic_url = "https://traffic.hyteck.de/count.js"
|
oxitraffic_url = "https://traffic.hyteck.de/count.js"
|
||||||
|
|
||||||
# Nav links in the side bar
|
# Nav links in the side bar
|
||||||
[[menu.main]]
|
|
||||||
name = "Home"
|
|
||||||
url = "/"
|
|
||||||
weight = 1
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Services"
|
|
||||||
url = "services/"
|
|
||||||
weight = 3
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "About"
|
name = "Notes"
|
||||||
url = "about/"
|
url = "notes/"
|
||||||
weight = 3
|
weight = 1
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Privacy + Imprint"
|
name = "Services"
|
||||||
url = "imprint/"
|
url = "services/"
|
||||||
weight = 4
|
weight = 2
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "About"
|
||||||
|
url = "about/"
|
||||||
|
weight = 3
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Privacy + Imprint"
|
||||||
|
url = "imprint/"
|
||||||
|
weight = 4
|
||||||
|
|
||||||
# this will also be in author bio if there is no writer.
|
# this will also be in author bio if there is no writer.
|
||||||
[params.social]
|
[params.social]
|
||||||
github = "https://github.com/moan0s"
|
github = "https://github.com/moan0s"
|
||||||
email = "julian-samuel@gebuehr.net"
|
email = "julian-samuel@gebuehr.net"
|
||||||
twitter = "https://twitter.com/jgebuehr"
|
twitter = "https://twitter.com/jgebuehr"
|
||||||
linkedin = "https://www.linkedin.com/in/julian-samuel-gebühr/"
|
linkedin = "https://www.linkedin.com/in/julian-samuel-gebühr/"
|
||||||
stackoverflow = "https://stackoverflow.com/users/9908321/gerjuli"
|
stackoverflow = "https://stackoverflow.com/users/9908321/gerjuli"
|
||||||
instagram = "https://www.instagram.com/julian_samuel_gebuehr/"
|
instagram = "https://www.instagram.com/julian_samuel_gebuehr/"
|
||||||
facebook = "https://www.facebook.com/juliansamuel.gebuhr"
|
facebook = "https://www.facebook.com/juliansamuel.gebuhr"
|
||||||
mastodon = "https://chaos.social/@moanos"
|
mastodon = "https://chaos.social/@moanos"
|
||||||
rss = true
|
rss = true
|
||||||
[[params.fediverse]]
|
[[params.fediverse]]
|
||||||
url = "https://chaos.social/@moanos"
|
url = "https://chaos.social/@moanos"
|
||||||
name = "Personal mastodon profile"
|
name = "Personal mastodon profile"
|
||||||
|
|
||||||
[params.hosted_on]
|
[params.hosted_on]
|
||||||
src = '/img/uberspace_badge_dark.png'
|
src = '/img/uberspace_badge_dark.png'
|
||||||
alt = 'Badge saying: Proudly hosted on asteroids'
|
alt = 'Badge saying: Proudly hosted on asteroids'
|
||||||
target = 'https://uberspace.de'
|
target = 'https://uberspace.de'
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["HTML", "RSS"]
|
home = ["HTML", "RSS"]
|
||||||
|
|
||||||
|
|||||||
6
content/notes/_index.md
Normal file
6
content/notes/_index.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "Notes"
|
||||||
|
---
|
||||||
|
|
||||||
|
My notes are mainly a store of information for my future self. Here you find titbits of information, small HowTos and
|
||||||
|
such. Do not expect the quality of a blogpost for these.
|
||||||
26
layouts/notes/list.html
Normal file
26
layouts/notes/list.html
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<h1 style="color: whitesmoke">Notes</h1>
|
||||||
|
|
||||||
|
<div style="color: whitesmoke;">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<ul style="list-style-type:none">
|
||||||
|
{{ if (.Pages.ByDate.Reverse) }}
|
||||||
|
{{ range .Pages.ByDate.Reverse }}
|
||||||
|
<li class="block">
|
||||||
|
<h2>
|
||||||
|
<a href="{{ .Permalink }} " style="color: whitesmoke;"> {{ .Title }} </a>
|
||||||
|
</h2>
|
||||||
|
<small style="color: whitesmoke;">{{ .Date.Format "2006-01-02" }}</small>
|
||||||
|
{{ if .Params.subtitle }}
|
||||||
|
<p style="color: whitesmoke">{{ .Params.subtitle }}</p>
|
||||||
|
{{ end }}
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
No notes found.
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
Reference in New Issue
Block a user