mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
Add shortcode for speakerdeck
This commit is contained in:
1 parent
fe2a9fa21d
commit
cc3f52b9c1
1 file changed
+1
-1
@@ -41,6 +41,7 @@ func (t *GoHTMLTemplate) EmbedShortcodes() {
|
||||
{{ end }}
|
||||
</figure>
|
||||
<!-- image -->`)
|
||||
t.AddInternalShortcode("speakerdeck.html", "<script async class='speakerdeck-embed' data-id='{{ index .Params 0 }}' data-ratio='1.33333333333333' src='https://speakerdeck.com/assets/embed.js'></script>")
|
||||
}
|
||||
|
||||
func (t *GoHTMLTemplate) EmbedTemplates() {
|
||||
@@ -215,5 +216,4 @@ ga('create', '{{ . }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
{{ end }}`)
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user