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 # Python
.venv .venv
# murmeldin
overview.md

View file

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

View file

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

View file

@ -29,5 +29,4 @@ title = "Chaos Computer Club Berlin"
{ forgejo = "https://git.berlin.ccc.de/explore/repos" }, { forgejo = "https://git.berlin.ccc.de/explore/repos" },
{ email = "mailto:mail2025@berlin.ccc.de" }, { email = "mailto:mail2025@berlin.ccc.de" },
{ github = "https://github.com/cccb/" }, { 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 footer menu is displayed at the bottom of the page, just before
# the copyright notice. Configure as per the main menu above. # the copyright notice. Configure as per the main menu above.
[[footer]] [[footer]]
name = "Tags" name = "Tags"
pageRef = "tags" pageRef = "tags"

View file

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