diff options
author | Josh Dzielak <dzello@users.noreply.github.com> | 2021-04-09 13:19:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 13:19:36 +0300 |
commit | 99bbb0ccabd0f91c596b7b312c03f613c61b05b0 (patch) | |
tree | d1ef5f071662fb1ec400121285c9634ad0b3f437 | |
parent | 93a991977937fbf7e27c8c16fade9278764291b3 (diff) | |
parent | 2154042b12c3a57b700b00fd476968fa3f0a269d (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.html | 6 |
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> + |