mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 13:43:08 +00: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 }}
|
||||
</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 }}`)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue