diff options
1 files changed, 6 insertions, 0 deletions
| -rw-r--r-- | layouts/shortcodes/fragment.html | 6 |
diff --git a/layouts/shortcodes/fragment.html b/layouts/shortcodes/fragment.html new file mode 100644 index 0000000..bcd5627 --- /dev/null +++ b/layouts/shortcodes/fragment.html @@ -0,0 +1,6 @@ +{{/* 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 |
