diff options
author | Markus Eliasson <markus.eliasson@gmail.com> | 2014-09-02 01:56:47 +0400 |
---|---|---|
committer | Markus Eliasson <markus.eliasson@gmail.com> | 2014-09-02 01:56:47 +0400 |
commit | f6461935712328384e807080dc2bfde6d64793b1 (patch) | |
tree | 493dbeacd30b078a5088140b8a9464203d7bf68c | |
parent | b94efd83d77a393e4142d46cbb137d74e03a88e3 (diff) |
Add custom shortcode for gists
-rw-r--r-- | README.md | 25 | ||||
-rw-r--r-- | layouts/shortcodes/gist.html | 1 |
2 files changed, 24 insertions, 2 deletions
@@ -3,12 +3,33 @@ Liquorice is a small black and white theme for [Hugo](https://github.com/spf13/hugo) (a fast and modern static website engine). -## CSS minification +### Dependencies -CSS minification is done using the node tool [clean-css](https://github.com/GoalSmashers/clean-css). +Liquorice needs at least version 0.12 of Hugo, as it uses features such as partials. + + +### Shortcodes + +Liquorice comes with these additional shortcodes: + + +#### gist + +Include a Github gist using their JavaScript include. + + {{% gist e572b28c9a0eef0b2763 %}} + +Where the first parameter is the gist id. + + +### Building + +There is not much to build, but the theme CSS is minified using the node tool [clean-css](https://github.com/GoalSmashers/clean-css). cleancss -o static/css/liquorice.min.css static/css/liquorice.css +*Any change in styles needs to result in a minification!* + # License diff --git a/layouts/shortcodes/gist.html b/layouts/shortcodes/gist.html new file mode 100644 index 0000000..4084570 --- /dev/null +++ b/layouts/shortcodes/gist.html @@ -0,0 +1 @@ +<script src="https://gist.github.com/{{ index .Params 0 }}.js"></script> |