Add blockquote shortcode.

This commit is contained in:
Shawn O'Hare 2015-12-30 22:10:37 -08:00
parent 45c0414b3d
commit f48e153d93
2 changed files with 14 additions and 0 deletions

View file

@ -33,6 +33,15 @@ The site specific parameters that this theme :wrecognizes are:
This theme provides the following shortcodes. 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` - `marginnote`
- Description: Wrap text to produce a numberless margin note. - Description: Wrap text to produce a numberless margin note.
- Usage: Accepts a required positional argument that is the margin note id. - Usage: Accepts a required positional argument that is the margin note id.
@ -54,6 +63,7 @@ This theme provides the following shortcodes.
`{{% sidenote "<side note id>"" %}}...{{% /sidenote %}}` `{{% sidenote "<side note id>"" %}}...{{% /sidenote %}}`
- Example: `{{% sidenote "sn-example" %}}Some sidenote{{% /sidenote %}}` - Example: `{{% sidenote "sn-example" %}}Some sidenote{{% /sidenote %}}`
## Templates ## Templates
TODO TODO
- [ ] Describe the role of each template file, as commenting within the files - [ ] Describe the role of each template file, as commenting within the files

View file

@ -0,0 +1,4 @@
<blockquote cite="{{ .Get "cite" }}">
{{ .Inner }}
<footer>{{ .Get "footer" }}</footer>
</blockquote>