diff options
author | digitalcraftsman <digitalcraftsman@protonmail.com> | 2017-05-19 22:45:39 +0300 |
---|---|---|
committer | digitalcraftsman <digitalcraftsman@protonmail.com> | 2017-05-19 22:45:39 +0300 |
commit | 52031082ef5cf8da6132d79bf6bfca2eb7a583e7 (patch) | |
tree | e74cb2bfc886b6bc3aaa2a3858da03807b176833 | |
parent | d38e4be45711c49174079fe57c2af959891e2cde (diff) |
Deprecate JSFiddle shortcode
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | exampleSite/content/post/introducing-icarus-and-its-features.md | 26 | ||||
-rw-r--r-- | layouts/shortcodes/jsfiddle.html | 5 |
3 files changed, 4 insertions, 43 deletions
@@ -125,13 +125,10 @@ You can also print formulas inline. In this case wrap the formula only once with If you don't need equations, you can disable MathJax but putting `disable_mathjax = true` in your config.toml. This will prevent clients from unnecessarily downloading the MathJax library. -## Shortcodes -Last but not least I included some useful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier. +### Gallery shortcode -### Gallery - -This way you can include a gallery into your post. Copy the code below into your content file and enter the relative paths to your images. +This shortcode you to easily include a gallery into your pages. Copy the code below into your content file and enter the relative paths to your images. {{< gallery "/banners/placeholder.png" @@ -139,15 +136,6 @@ This way you can include a gallery into your post. Copy the code below into your "/banners/placeholder.png" >}} -### JSFiddle - -It works the same with JSFiddle examples you want to showcase. The parameter `id` consists of the username and id of the example. - - {{< jsfiddle id="zalun/NmudS" >}} - -As descibed in the [docs of JSFiddle](http://doc.jsfiddle.net/use/embedding.html), you can define which tabs will be shown. Enter the tabs you want to see separated by a comma in the `tabs` parameter. - - {{< jsfiddle id="zalun/NmudS" tabs="html,result" >}} ## Nearly finished diff --git a/exampleSite/content/post/introducing-icarus-and-its-features.md b/exampleSite/content/post/introducing-icarus-and-its-features.md index c45386b..c8a19b2 100644 --- a/exampleSite/content/post/introducing-icarus-and-its-features.md +++ b/exampleSite/content/post/introducing-icarus-and-its-features.md @@ -136,13 +136,10 @@ $$ z = r \cdot (\sin{\phi} + \cos{\phi} \cdot i) $$ You can also print formulas inline: $a^2 + b^2 = c^2$. In this case wrap the formula only once with `$`. -## Shortcodes -Last but not least I included some useful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier. +### Gallery shortcode -### Gallery - -This way you can include a gallery into your post. Copy the code below into your content file and enter the relative paths to your images. +This way you can easily include a gallery into your page. Copy the code below into your content file and enter the relative paths to your images. {{</* gallery "/banners/placeholder.png" @@ -155,25 +152,6 @@ This way you can include a gallery into your post. Copy the code below into your {{< gallery "/banners/placeholder.png" "/banners/placeholder.png" "/banners/placeholder.png" >}} -### JSFiddle - -It works the same with JSFiddle examples you want to showcase. The parameter `id` consists of the username and id of the example. - - {{</* jsfiddle id="zalun/NmudS" */>}} - -<p></p> - -{{< jsfiddle id="zalun/NmudS" >}} - -As descibed in the [docs of JSFiddle](http://doc.jsfiddle.net/use/embedding.html), you can define which tabs will be shown. Enter the tabs you want to see separated by a comma in the `tabs` parameter. - - {{</* jsfiddle id="zalun/NmudS" tabs="html,result" */>}} - -Do you see the difference? - -{{< jsfiddle id="zalun/NmudS" tabs="html,result" >}} - - ## Nearly finished In order to see your site in action, run Hugo's built-in local server. diff --git a/layouts/shortcodes/jsfiddle.html b/layouts/shortcodes/jsfiddle.html deleted file mode 100644 index 3caba33..0000000 --- a/layouts/shortcodes/jsfiddle.html +++ /dev/null @@ -1,5 +0,0 @@ -<iframe - style="width: 100%; height: auto;" frameBorder="0" allowfullscreen="allowfullscreen" - src="https://jsfiddle.net/{{.Get "id"}}/embedded/{{ if not (eq (.Get "tabs") "") }}{{ .Get "tabs" }}/{{ end }}"> -</iframe> -<br><br> |