From 52031082ef5cf8da6132d79bf6bfca2eb7a583e7 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Fri, 19 May 2017 21:45:39 +0200 Subject: Deprecate JSFiddle shortcode --- README.md | 16 ++----------- .../post/introducing-icarus-and-its-features.md | 26 ++-------------------- layouts/shortcodes/jsfiddle.html | 5 ----- 3 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 layouts/shortcodes/jsfiddle.html diff --git a/README.md b/README.md index 3e0b483..a422c1c 100644 --- a/README.md +++ b/README.md @@ -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. {{}} -### 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. - - {{}} - -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 @@ - -

-- cgit v1.2.3