feat: add subtitle typeit

This commit is contained in:
Dillon ZENG
2019-08-08 06:05:51 +08:00
parent 0b85b03f62
commit 5e55b25c8a
4 changed files with 19 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
{{ end }}
{{ $id = printf "#%s" $id }}
<script>
if (!typeitMap) {
if (!window.typeitMap) {
var typeitMap = {}
}
typeitMap["{{ $id }}"] = {{ .Inner | safeHTML }};