Skip to content

Commit f1c7d0b

Browse files
committed
fix: remove duplicate sessions key breaking Hugo build
Duplicate `sessions:` key in simple-py.md front matter failed the production build. Also reformats single.html SVG per prettier. Assisted-by: ClaudeCode:claude-opus-4.8
1 parent fd146b4 commit f1c7d0b

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

content/events/simple-py.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ schedule:
113113
- time: "1:30"
114114
title: "Other tools (2)"
115115
duration: "15 mins"
116-
sessions:
117116
sessions:
118117
- title: "Shipping to distros"
119118
duration: "15 mins"

layouts/events/single.html

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,26 @@ <h2 class="schedule-day-title">{{ .day }}</h2>
6868
<a class="session-title" href="{{ .link }}">{{ .title }}</a>
6969
{{- else }}
7070
<span class="session-title">{{ .title }}</span>
71-
{{- end -}}
72-
{{- with .slides }}<a class="session-slides" href="{{ . }}" title="Slides" target="_blank" rel="noopener"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg></a>{{- end }}
71+
{{- end -}} {{- with .slides }}<a
72+
class="session-slides"
73+
href="{{ . }}"
74+
title="Slides"
75+
target="_blank"
76+
rel="noopener"
77+
><svg
78+
xmlns="http://www.w3.org/2000/svg"
79+
viewBox="0 0 24 24"
80+
fill="none"
81+
stroke="currentColor"
82+
stroke-width="2"
83+
stroke-linecap="round"
84+
stroke-linejoin="round"
85+
aria-hidden="true"
86+
>
87+
<rect x="2" y="3" width="20" height="14" rx="2" />
88+
<line x1="8" y1="21" x2="16" y2="21" />
89+
<line x1="12" y1="17" x2="12" y2="21" /></svg></a
90+
>{{- end }}
7391
</span>
7492
{{- with .duration }}<span class="session-duration"
7593
>{{ . }}</span

static/images/simplepy.png

525 KB
Loading

0 commit comments

Comments
 (0)