mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
16 lines
No EOL
538 B
HTML
16 lines
No EOL
538 B
HTML
{{ if .Get "id" -}}
|
|
{{ $id := .Get "id" -}}
|
|
{{ if .Get "date" -}}
|
|
{{ $date := .Get "date" -}}
|
|
{{ with .Page.Scratch.Get "countdownMap" -}}
|
|
{{ .Page.Scratch.Set "countdownMap" (dict $id $date | merge .) -}}
|
|
{{ else -}}
|
|
{{ .Page.Scratch.Set "countdownMap" (dict $id $date) -}}
|
|
{{ end -}}
|
|
{{ with .Get "class" -}}
|
|
<div id={{ $id }} class="{{ . }}"></div>
|
|
{{- else -}}
|
|
<div id={{ $id }}></div>
|
|
{{- end -}}
|
|
{{ end -}}
|
|
{{ end }} |