summaryrefslogtreecommitdiff
path: root/templates/overview.md
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@kesim.org>2024-11-29 12:58:13 +0100
committerÖzgür Kesim <oec@kesim.org>2024-11-29 12:58:13 +0100
commit8f3b017430c702b34ba61175fde6710e90b3c002 (patch)
treee7aab671d88d9526476081244781f2f66186838d /templates/overview.md
parentdfcb43d433fadbeb0c6b532b08238b8d855c415e (diff)
fix holiday in overview.md
Diffstat (limited to 'templates/overview.md')
-rw-r--r--templates/overview.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/overview.md b/templates/overview.md
index caff0cb..bc1a4c8 100644
--- a/templates/overview.md
+++ b/templates/overview.md
@@ -16,6 +16,6 @@
# Days
{{ range .Days 2024 03 }}
-{{if or .IsWeekend .IsHoliday }}# {{end}}{{.Date}}{{ if .IsHoliday}} ({{ index $hd .Date}}){{end -}}
+{{if or .IsWeekend .Holiday }}# {{end}}{{.Date}}{{with .Holiday}} ({{ . }}){{end -}}
{{ with .Planned }} Planned: {{ .Total }}{{ end }}{{ with .Worked }} Worked: {{ .Total }}{{end}}
-{{- end }} \ No newline at end of file
+{{- end }}