fixed config + ics timezone

This commit is contained in:
murmeldin 2025-04-16 18:36:08 +02:00
parent e91ab5473d
commit ccdaa9d95d
6 changed files with 50 additions and 55 deletions

3
.gitignore vendored
View file

@ -102,3 +102,6 @@ shell.nix
# Python
.venv
# murmeldin
overview.md

View file

@ -3,6 +3,8 @@
set -e
set -x
rm -rf public/ # delete old generated files
hugo $(cat .hugo-params)
./tools/merge_cals.py
upcoming="$(tools/gen_upcoming.py static/all.ics 20 5 | tr '\n' ' ')"

View file

@ -1,14 +1,10 @@
# -- Site Configuration --
# Refer to the theme docs for more details about each of these parameters.
# https://blowfish.page/docs/getting-started/
theme = 'blowfish'
baseURL = 'https://oururl.de/'
defaultContentLanguage = 'de'
relativeURLs = true
canonifyURLs = true
theme = "blowfish" # UNCOMMENT THIS LINE
baseURL = "https://berlin.ccc.de/"
defaultContentLanguage = "de"
RelativeURLs = true
CanonifyURLs = true
pluralizeListTitles = "false" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles
pluralizeListTitles = false
enableRobotsTXT = true
summaryLength = 0
@ -18,8 +14,6 @@ buildFuture = false
enableEmoji = true
# googleAnalytics = "G-XXXXXXXXX"
[pagination]
pagerSize = 100
@ -27,10 +21,10 @@ enableEmoji = true
anchor = 'Center'
[taxonomies]
tag = "tags"
category = "categories"
author = "authors"
series = "series"
tag = 'tags'
category = 'categories'
author = 'authors'
series = 'series'
[sitemap]
changefreq = 'daily'
@ -38,59 +32,57 @@ enableEmoji = true
priority = 0.5
[permalinks]
post = "/post/:year/:month/:day/:title/"
post = '/post/:year/:month/:day/:title/'
[outputs]
home = ["HTML", "RSS", "JSON"]
section = ["HTML", "Calendar", "RSS", "XML", "ICS"]
page = ["HTML", "Calendar", "ICS"]
home = ['html', 'rss', 'json']
section = ['html', 'Calendar', 'rss', 'xml']
page = ['html', 'Calendar']
# Output Formats Configuration
[outputFormats.Calendar]
mediaType = "text/calendar"
baseName = "index"
mediaType = 'text/calendar'
baseName = 'index'
isPlainText = true
notAlternative = true
[outputFormats.XML]
mediaType = "application/xml"
baseName = "index"
mediaType = 'application/xml'
baseName = 'index'
isPlainText = true
[outputFormats.RSS]
mediaType = "application/rss+xml"
mediaType = 'application/rss+xml'
# Media Types Configuration
[mediaTypes]
[mediaTypes."text/calendar"]
suffixes = ["ics"]
[mediaTypes."application/rss"]
suffixes = ["rss"]
[mediaTypes."application/xml"]
suffixes = ["xml"]
[mediaTypes.'text/calendar']
suffixes = ['ics']
[mediaTypes.'application/rss+xml']
suffixes = ['xml', 'rss']
[related]
threshold = 0
toLower = false
[[related.indices]]
name = "tags"
name = 'tags'
weight = 100
[[related.indices]]
name = "categories"
name = 'categories'
weight = 100
[[related.indices]]
name = "series"
name = 'series'
weight = 50
[[related.indices]]
name = "authors"
name = 'authors'
weight = 20
[[related.indices]]
name = "date"
name = 'date'
weight = 10
[[related.indices]]

View file

@ -29,5 +29,4 @@ title = "Chaos Computer Club Berlin"
{ forgejo = "https://git.berlin.ccc.de/explore/repos" },
{ email = "mailto:mail2025@berlin.ccc.de" },
{ github = "https://github.com/cccb/" },
]

View file

@ -39,7 +39,6 @@
# The footer menu is displayed at the bottom of the page, just before
# the copyright notice. Configure as per the main menu above.
[[footer]]
name = "Tags"
pageRef = "tags"

View file

@ -16,8 +16,8 @@ DESCRIPTION:{{ . }}
Link: https://berlin.ccc.de{{ $.RelPermalink }}
{{ end }}
URL:https://berlin.ccc.de{{ .RelPermalink }}
{{ with .Params.dtstart }}DTSTART:{{ . }}{{ end }}
{{ with .Params.dtend }}DTEND:{{ . }}{{ end }}
{{ with .Params.dtstart }}DTSTART;TZID=Europe/Berlin:{{ . }}{{ end }}
{{ with .Params.dtend }}DTEND;TZID=Europe/Berlin:{{ . }}{{ end }}
{{ with .Params.rrule }}RRULE:{{ . }}{{ end }}
DTSTAMP:{{ now.Format "20060102T150405Z" }}
END:VEVENT