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:
authorAndrew Wong <andrew.j.wong@outlook.com>2020-10-15 10:11:07 +0300
committerAndrew Wong <andrew.j.wong@outlook.com>2020-10-15 10:11:11 +0300
commit2154042b12c3a57b700b00fd476968fa3f0a269d (patch)
tree58486a5e6e00b362808f7b1a84bfb4bc93010455
parentf2878276789b90c96c83871e454911fd4dbc5d85 (diff)
Monkey-patch fix for fragments inside sections for Hugo 0.60.0+
* Workaround for https://github.com/dzello/reveal-hugo/issues/93 * Workaround for https://github.com/dzello/reveal-hugo/issues/77
-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>
+