Compare commits

..

No commits in common. "c4fb3883b1744c3241d1a64b623477525918f588" and "1249bd5aee1210ffe045302abe1e95aa48966f31" have entirely different histories.

3 changed files with 19 additions and 7 deletions

View file

@ -1,5 +1,5 @@
baseURL = 'https://hamburg.ccc.de/' baseURL = 'https://hamburg.ccc.de/'
locale = 'de-de' languageCode = 'de-de'
defaultContentLanguage = 'de' defaultContentLanguage = 'de'
timeZone = 'Europe/Berlin' timeZone = 'Europe/Berlin'
title = 'CCC Hansestadt Hamburg e.V.' title = 'CCC Hansestadt Hamburg e.V.'

View file

@ -1,3 +1,4 @@
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
{{- $authorEmail := "" }} {{- $authorEmail := "" }}
{{- with site.Params.author }} {{- with site.Params.author }}
{{- if reflect.IsMap . }} {{- if reflect.IsMap . }}
@ -5,8 +6,14 @@
{{- $authorEmail = . }} {{- $authorEmail = . }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- else }}
{{- with site.Author.email }}
{{- $authorEmail = . }}
{{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }}
{{- end }}
{{- end }} {{- end }}
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
{{- $authorName := "" }} {{- $authorName := "" }}
{{- with site.Params.author }} {{- with site.Params.author }}
{{- if reflect.IsMap . }} {{- if reflect.IsMap . }}
@ -16,6 +23,11 @@
{{- else }} {{- else }}
{{- $authorName = . }} {{- $authorName = . }}
{{- end }} {{- end }}
{{- else }}
{{- with site.Author.name }}
{{- $authorName = . }}
{{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }}
{{- end }}
{{- end }} {{- end }}
{{- $pctx := . }} {{- $pctx := . }}
@ -36,12 +48,12 @@
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description> <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo</generator> <generator>Hugo -- gohugo.io</generator>
<language>{{ site.Language.Locale }}</language>{{ with $authorEmail }} {{ with $authorEmail }}
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }} <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }} <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }} <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" }} {{- with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end }} {{- end }}
@ -57,7 +69,7 @@
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ .Content | transform.XMLEscape | safeHTML }}</description> <description>{{ .Content | html }}</description>
</item> </item>
{{- end }} {{- end }}
</channel> </channel>

View file

@ -1,4 +1,4 @@
{{- index hugo.Data "calendar.json" }} {{- index .Site.Data "calendar.json" }}
<table> <table>
<thead> <thead>
<tr> <tr>
@ -8,7 +8,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{- range first 7 (sort hugo.Data.calendar "dtstart" ) }} {{- range first 7 (sort $.Site.Data.calendar "dtstart" ) }}
{{- if eq ._type "vevent"}} {{- if eq ._type "vevent"}}
<tr> <tr>
{{- $start := time .dtstart }} {{- $start := time .dtstart }}