Website Summary Files Commits Branches @commit @diff @stats
path: root / layouts / shortcodes / note.html
diff options
context:
space:
mode:
1 files changed, 4 insertions, 0 deletions
-rw-r--r--layouts/shortcodes/note.html4
diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html
new file mode 100644
index 0000000..f5ee55e
--- /dev/null
+++ b/layouts/shortcodes/note.html
@@ -0,0 +1,4 @@
+{{/* Markdown is not rendered inside <aside> tags! So we use the following */}}
+{{/* config which causes .Inner to be rendered before processing the shortcode. */}}
+{{ $_hugo_config := `{ "version": 1 }` }}
+<aside class="notes">{{ .Inner }}</aside> \ No newline at end of file