Skip to content

Commit

Permalink
Monkey-patch fix for fragments inside sections for Hugo 0.60.0+
Browse files Browse the repository at this point in the history
* Workaround for joshed-io#93
* Workaround for joshed-io#77
  • Loading branch information
featherbear committed Oct 15, 2020
1 parent f287827 commit 2154042
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions layouts/shortcodes/fragment.html
Original file line number Diff line number Diff line change
@@ -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>
<span class='fragment {{ .Get "class" }}' {{ with .Get "index" }}data-fragment-index='{{ . }}'{{ end }}>{{ .Inner }}</span>

0 comments on commit 2154042

Please sign in to comment.