feat: add TypeIt and CountDown

This commit is contained in:
Dillon ZENG
2019-08-08 05:01:18 +08:00
parent 6d188f2944
commit 0b85b03f62
6 changed files with 117 additions and 13 deletions

View File

@@ -0,0 +1,17 @@
{{ 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" }}
<script>
if (!window.countdownMap) {
var countdownMap = {}
}
countdownMap["{{ $id }}"] = {{ . }};
</script>
{{ end }}
{{ end }}