aboutsummaryrefslogtreecommitdiff
path: root/themes/docsy/layouts/shortcodes/pageinfo.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/docsy/layouts/shortcodes/pageinfo.html')
-rw-r--r--themes/docsy/layouts/shortcodes/pageinfo.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/docsy/layouts/shortcodes/pageinfo.html b/themes/docsy/layouts/shortcodes/pageinfo.html
new file mode 100644
index 0000000..303f8c5
--- /dev/null
+++ b/themes/docsy/layouts/shortcodes/pageinfo.html
@@ -0,0 +1,5 @@
+{{ $_hugo_config := `{ "version": 1 }` }}
+{{ $color := .Get "color" | default "primary" }}
+<div class="pageinfo pageinfo-{{ $color }}">
+{{ .Inner }}
+</div>