Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit 5203108

Browse files
Deprecate JSFiddle shortcode
1 parent d38e4be commit 5203108

File tree

3 files changed

+4
-43
lines changed

3 files changed

+4
-43
lines changed

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,29 +125,17 @@ You can also print formulas inline. In this case wrap the formula only once with
125125

126126
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.
127127

128-
## Shortcodes
129128

130-
Last but not least I included some useful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier.
129+
### Gallery shortcode
131130

132-
### Gallery
133-
134-
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.
131+
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.
135132

136133
{{< gallery
137134
"/banners/placeholder.png"
138135
"/banners/placeholder.png"
139136
"/banners/placeholder.png"
140137
>}}
141138

142-
### JSFiddle
143-
144-
It works the same with JSFiddle examples you want to showcase. The parameter `id` consists of the username and id of the example.
145-
146-
{{< jsfiddle id="zalun/NmudS" >}}
147-
148-
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.
149-
150-
{{< jsfiddle id="zalun/NmudS" tabs="html,result" >}}
151139

152140
## Nearly finished
153141

exampleSite/content/post/introducing-icarus-and-its-features.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,10 @@ $$ z = r \cdot (\sin{\phi} + \cos{\phi} \cdot i) $$
136136
You can also print formulas inline: $a^2 + b^2 = c^2$. In this case wrap the formula only once with `$`.
137137

138138

139-
## Shortcodes
140139

141-
Last but not least I included some useful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier.
140+
### Gallery shortcode
142141

143-
### Gallery
144-
145-
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.
142+
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.
146143

147144
{{</* gallery
148145
"/banners/placeholder.png"
@@ -155,25 +152,6 @@ This way you can include a gallery into your post. Copy the code below into your
155152
{{< gallery "/banners/placeholder.png" "/banners/placeholder.png" "/banners/placeholder.png" >}}
156153

157154

158-
### JSFiddle
159-
160-
It works the same with JSFiddle examples you want to showcase. The parameter `id` consists of the username and id of the example.
161-
162-
{{</* jsfiddle id="zalun/NmudS" */>}}
163-
164-
<p></p>
165-
166-
{{< jsfiddle id="zalun/NmudS" >}}
167-
168-
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.
169-
170-
{{</* jsfiddle id="zalun/NmudS" tabs="html,result" */>}}
171-
172-
Do you see the difference?
173-
174-
{{< jsfiddle id="zalun/NmudS" tabs="html,result" >}}
175-
176-
177155
## Nearly finished
178156

179157
In order to see your site in action, run Hugo's built-in local server.

layouts/shortcodes/jsfiddle.html

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)