From f48e153d936fcd46b4ba2f15d86938d66e19b41c Mon Sep 17 00:00:00 2001 From: Shawn O'Hare Date: Wed, 30 Dec 2015 22:10:37 -0800 Subject: [PATCH] Add blockquote shortcode. --- README.md | 10 ++++++++++ layouts/shortcodes/blockquote.html | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 layouts/shortcodes/blockquote.html diff --git a/README.md b/README.md index f2b77c1..29b728c 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,15 @@ The site specific parameters that this theme :wrecognizes are: This theme provides the following shortcodes. +- `blockquote` + - Description: Wrap text in a blockquote and insert optional + `cite` or `footer` metadata. + - Example: + ```html + {{% blockquote cite="www.shawnohare.com" footer="Shawn" %}} + There is nothing more beautiful than an elegant mathematical proof. + {{% /blockquote %}}` + ``` - `marginnote` - Description: Wrap text to produce a numberless margin note. - Usage: Accepts a required positional argument that is the margin note id. @@ -54,6 +63,7 @@ This theme provides the following shortcodes. `{{% sidenote """ %}}...{{% /sidenote %}}` - Example: `{{% sidenote "sn-example" %}}Some sidenote{{% /sidenote %}}` + ## Templates TODO - [ ] Describe the role of each template file, as commenting within the files diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html new file mode 100644 index 0000000..e00389c --- /dev/null +++ b/layouts/shortcodes/blockquote.html @@ -0,0 +1,4 @@ +
+ {{ .Inner }} + +