* Add a post date to each post * Do not show the post date for tours * Only show posts tagged "current-event" on the home page (hiding 37c3 entries) * Use a custom template for sorting the summary list by title (instead of the default by date)
This commit is contained in:
parent
d070853e64
commit
c06c8603ef
|
@ -11,4 +11,9 @@ table, th, td {
|
||||||
th, td {
|
th, td {
|
||||||
padding: 3px 6px;
|
padding: 3px 6px;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-post-date {
|
||||||
|
font-size: .7em;
|
||||||
|
margin-left: 2em;
|
||||||
}
|
}
|
|
@ -1,7 +1,10 @@
|
||||||
---
|
---
|
||||||
title: 37c3 Touren
|
title: 37c3 Touren
|
||||||
weight: 10
|
weight: 10
|
||||||
type: tours
|
layout: list-bytitle
|
||||||
|
cascade:
|
||||||
|
params:
|
||||||
|
showPostDate: false
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
---
|
---
|
||||||
title: 38c3 Touren
|
title: 38c3 Touren
|
||||||
weight: 10
|
weight: 10
|
||||||
type: tours
|
layout: list-bytitle
|
||||||
menus:
|
menus:
|
||||||
main:
|
main:
|
||||||
name: Touren
|
name: Touren
|
||||||
|
params:
|
||||||
|
showPostDate: false
|
||||||
|
cascade:
|
||||||
|
params:
|
||||||
|
showPostDate: false
|
||||||
---
|
---
|
||||||
|
|
||||||
Diese Touren bieten wir zum 38c3 Chaos Communication Congress an:
|
Diese Touren bieten wir zum 38c3 Chaos Communication Congress an:
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
---
|
---
|
||||||
title: 'Freut euch auf die Touren beim 38c3!'
|
title: 'Freut euch auf die Touren beim 38c3!'
|
||||||
date: 2024-10-31T09:00:00+01:00
|
date: 2024-10-31T09:00:00+01:00
|
||||||
|
tags:
|
||||||
|
- current-event
|
||||||
|
- 38c3
|
||||||
---
|
---
|
||||||
|
|
||||||
Wir bereiten auch für den 38c3 Touren vor. Sobald wir die Details ausgearbeitet haben, erfahrt ihr hier mehr.
|
Wir bereiten auch für den 38c3 Touren vor. Sobald wir die Details ausgearbeitet haben, erfahrt ihr hier mehr.
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
---
|
---
|
||||||
title: 'Der Shop hat auf für den 38c3!'
|
title: 'Der Shop hat auf für den 38c3!'
|
||||||
date: 2024-11-18T09:00:00+01:00
|
date: 2024-11-18T09:00:00+01:00
|
||||||
|
tags:
|
||||||
|
- current-event
|
||||||
|
- 38c3
|
||||||
---
|
---
|
||||||
|
|
||||||
(Fast) alle Touren sind hier auf [der Website](../38c3/), und ihr könnt Plätze für die Touren [im Shop buchen](https://tickets.hamburg.ccc.de/hackertours/38c3/)! In den nächsten Wochen werden wir die Touren auf Mastodon [@hackertours@chaos.social](https://chaos.social/@hackertours) vorstellen, folgt uns also dort.
|
(Fast) alle Touren sind hier auf [der Website](../38c3/), und ihr könnt Plätze für die Touren [im Shop buchen](https://tickets.hamburg.ccc.de/hackertours/38c3/)! In den nächsten Wochen werden wir die Touren auf Mastodon [@hackertours@chaos.social](https://chaos.social/@hackertours) vorstellen, folgt uns also dort.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: News
|
title: News
|
||||||
|
type: posts
|
||||||
weight: 2
|
weight: 2
|
||||||
menus: main
|
menus: main
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
---
|
---
|
||||||
title: 37c3 Tours
|
title: 37c3 Tours
|
||||||
weight: 10
|
weight: 10
|
||||||
type: tours
|
layout: list-bytitle
|
||||||
|
cascade:
|
||||||
|
params:
|
||||||
|
showPostDate: false
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
---
|
---
|
||||||
title: 38c3 Tours
|
title: 38c3 Tours
|
||||||
weight: 10
|
weight: 10
|
||||||
type: tours
|
layout: list-bytitle
|
||||||
menus:
|
menus:
|
||||||
main:
|
main:
|
||||||
name: Tours
|
name: Tours
|
||||||
|
cascade:
|
||||||
|
params:
|
||||||
|
showPostDate: false
|
||||||
---
|
---
|
||||||
|
|
||||||
These are the tours on offer for 38c3 Chaos Communication Congress:
|
These are the tours on offer for 38c3 Chaos Communication Congress:
|
||||||
|
|
|
@ -24,3 +24,4 @@ This year we have found interesting places in and around Hamburg where you can d
|
||||||
Hackertours Desk: DECT 8687 "TOUR", +49 40 573 0830 8687, Foyer X, next to the white grandfather clock
|
Hackertours Desk: DECT 8687 "TOUR", +49 40 573 0830 8687, Foyer X, next to the white grandfather clock
|
||||||
|
|
||||||
# News
|
# News
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
---
|
---
|
||||||
title: 'Get excited about the tours at 38c3!'
|
title: 'Get excited about the tours at 38c3!'
|
||||||
date: 2024-10-31T09:00:00+01:00
|
date: 2024-10-31T09:00:00+01:00
|
||||||
|
tags:
|
||||||
|
- current-event
|
||||||
|
- 38c3
|
||||||
---
|
---
|
||||||
|
|
||||||
We are preparing tours again for 38c3. As soon as we have nailed down the details, we'll let you know here.
|
We are preparing tours again for 38c3. As soon as we have nailed down the details, we'll let you know here.
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
---
|
---
|
||||||
title: 'The shop is open for 38c3!'
|
title: 'The shop is open for 38c3!'
|
||||||
date: 2024-11-18T09:00:00+01:00
|
date: 2024-11-18T09:00:00+01:00
|
||||||
|
tags:
|
||||||
|
- current-event
|
||||||
|
- 38c3
|
||||||
---
|
---
|
||||||
|
|
||||||
(Almost) all tours are on this [website](../38c3/), and [the shop](https://tickets.hamburg.ccc.de/hackertours/38c3/) is open for you to book a spot on one of the tours! Over the coming weeks, we will highlight the tours on Mastodon [@hackertours@chaos.social](https://chaos.social/@hackertours), so be sure to follow us there.
|
(Almost) all tours are on this [website](../38c3/), and [the shop](https://tickets.hamburg.ccc.de/hackertours/38c3/) is open for you to book a spot on one of the tours! Over the coming weeks, we will highlight the tours on Mastodon [@hackertours@chaos.social](https://chaos.social/@hackertours), so be sure to follow us there.
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: News
|
title: News
|
||||||
|
type: posts
|
||||||
weight: 2
|
weight: 2
|
||||||
menus:
|
menus:
|
||||||
main:
|
main:
|
||||||
|
|
|
@ -11,8 +11,10 @@ ignoreLogs:
|
||||||
params:
|
params:
|
||||||
contact: "hackertours@hamburg.ccc.de"
|
contact: "hackertours@hamburg.ccc.de"
|
||||||
copyright: "[CCC Hansestadt Hamburg e.V.](https://hamburg.ccc.de) ist nur der Vermittler der Touren. Für das Angebot und die Durchführung der Touren sind die jeweiligen Veranstalter verantwortlich."
|
copyright: "[CCC Hansestadt Hamburg e.V.](https://hamburg.ccc.de) ist nur der Vermittler der Touren. Für das Angebot und die Durchführung der Touren sind die jeweiligen Veranstalter verantwortlich."
|
||||||
|
dateFormat: "02.03.2006 15:04"
|
||||||
description: "Hamburg Hackertours"
|
description: "Hamburg Hackertours"
|
||||||
footer: "[Impressum & Datenschutz](https://hamburg.ccc.de/imprint/) – [Ticket Shop](https://tickets.hamburg.ccc.de/hackertours/38c3/)"
|
footer: "[Impressum & Datenschutz](https://hamburg.ccc.de/imprint/) – [Ticket Shop](https://tickets.hamburg.ccc.de/hackertours/38c3/)"
|
||||||
|
showPostDate: true
|
||||||
logo: true
|
logo: true
|
||||||
logoPath: img/hackertours-2024-color.svg
|
logoPath: img/hackertours-2024-color.svg
|
||||||
logoHeight: 100
|
logoHeight: 100
|
||||||
|
|
12
layouts/_default/summary.html
Normal file
12
layouts/_default/summary.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<article class="list-view{{ with .Section }} list-view--{{ . | urlize }}{{ end }}">
|
||||||
|
<header>
|
||||||
|
{{- $postDate := "" }}
|
||||||
|
{{- if .Param "showPostDate" | default false }}
|
||||||
|
{{- $postDate = .Params.date.Format .Site.Params.dateFormat }}
|
||||||
|
{{- end }}
|
||||||
|
<h2 class="title mt--s{{ if $.Param "submitted" | default false }} mb--xxs{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a> <span class="title-post-date">{{ $postDate }}</span></h2>
|
||||||
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{ .Summary }}
|
||||||
|
</article>
|
15
layouts/index.html
Normal file
15
layouts/index.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{{ define "title" }}{{ site.Title }}{{ end }}
|
||||||
|
|
||||||
|
{{ define "main" -}}
|
||||||
|
<main class="main layout__main">
|
||||||
|
{{ .Content }}
|
||||||
|
|
||||||
|
{{ $pages := .Site.RegularPages.RelatedTo (keyVals "tags" "current-event") -}}
|
||||||
|
{{ $paginator := .Paginate $pages -}}
|
||||||
|
{{ range $paginator.Pages -}}
|
||||||
|
{{ .Render "summary" }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ partial "pagination.html" . }}
|
||||||
|
</main>
|
||||||
|
{{ end -}}
|
Loading…
Reference in a new issue