feat: new index and style update
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
{{ if .Get "id" }}
|
||||
{{ $id := .Get "id" }}
|
||||
{{ with .Get "class" }}
|
||||
<div id={{ $id }} class="{{ . }}"></div>
|
||||
{{ else }}
|
||||
<div id={{ $id }}></div>
|
||||
{{ end }}
|
||||
{{ $id = printf "#%s" $id }}
|
||||
{{ with .Get "date" }}
|
||||
{{ $date := . }}
|
||||
{{ with $.Page.Scratch.Get "countdownMap" }}
|
||||
{{ $.Page.Scratch.Set "countdownMap" (dict $id $date | merge .) }}
|
||||
{{ else }}
|
||||
{{ $.Page.Scratch.Set "countdownMap" (dict $id $date) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ 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 }}
|
||||
Reference in New Issue
Block a user