mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add shortcode for speakerdeck
This commit is contained in:
parent
fe2a9fa21d
commit
cc3f52b9c1
1 changed files with 1 additions and 1 deletions
|
@ -41,6 +41,7 @@ func (t *GoHTMLTemplate) EmbedShortcodes() {
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
<!-- image -->`)
|
<!-- 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() {
|
func (t *GoHTMLTemplate) EmbedTemplates() {
|
||||||
|
@ -215,5 +216,4 @@ ga('create', '{{ . }}', 'auto');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
</script>
|
</script>
|
||||||
{{ end }}`)
|
{{ end }}`)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue