Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dzello/reveal-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Dzielak <dzello@users.noreply.github.com>2021-04-09 13:19:36 +0300
committerGitHub <noreply@github.com>2021-04-09 13:19:36 +0300
commit99bbb0ccabd0f91c596b7b312c03f613c61b05b0 (patch)
treed1ef5f071662fb1ec400121285c9634ad0b3f437
parent93a991977937fbf7e27c8c16fade9278764291b3 (diff)
parent2154042b12c3a57b700b00fd476968fa3f0a269d (diff)
Merge pull request #97 from featherbear/master
Monkey-patch fix for fragments inside sections for Hugo 0.60.0+
-rw-r--r--layouts/shortcodes/fragment.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/shortcodes/fragment.html b/layouts/shortcodes/fragment.html
index bcd5627..ecdebfb 100644
--- a/layouts/shortcodes/fragment.html
+++ b/layouts/shortcodes/fragment.html
@@ -1,6 +1,4 @@
{{/* Render .Inner before processing the shortcode. */}}
{{ $_hugo_config := `{ "version": 1 }` }}
-<span class='fragment {{ .Get "class" }}'
- {{ with .Get "index" }}data-fragment-index='{{ . }}'{{ end }}>
- {{ .Inner }}
-</span> \ No newline at end of file
+<span class='fragment {{ .Get "class" }}' {{ with .Get "index" }}data-fragment-index='{{ . }}'{{ end }}>{{ .Inner }}</span>
+