| exampleSite/content/awesome.md | ●●●●● patch | view | raw | blame | history | |
| exampleSite/content/cool.md | ●●●●● patch | view | raw | blame | history | |
| exampleSite/content/interesting.md | ●●●●● patch | view | raw | blame | history | |
| layouts/shortcodes/dropdown/content.html | ●●●●● patch | view | raw | blame | history | |
| layouts/shortcodes/dropdown/link.html | ●●●●● patch | view | raw | blame | history |
exampleSite/content/awesome.md
@@ -9,7 +9,8 @@ --- Here's some awesome text on an awesome page. That image on the left? It'll randomly change on load between the ones in "sideimages". <br><a href="javascript:toggleDisplay('drop_stuff');">Stuff that drops down when you click on it:</a> <div id="drop_stuff" style="display:none"> This stuff drops down because you clicked on the text. </div> {{< dropdown/link togglename="dropstuff" linktext="Stuff that drops down when you click on it top:" >}} {{< dropdown/content togglename="dropstuff" >}} This stuff drops down because you clicked on the text. {{< /dropdown/content >}} exampleSite/content/cool.md
@@ -9,7 +9,8 @@ --- Here's some cool text on a cool page. That image on the left? It'll randomly change on load between the ones in "sideimages". <br><a href="javascript:toggleDisplay('drop_stuff');">Stuff that drops down when you click on it:</a> <div id="drop_stuff" style="display:none"> This stuff drops down because you clicked on the text. </div> {{< dropdown/link togglename="dropstuff" linktext="Stuff that drops down when you click on it top:" >}} {{< dropdown/content togglename="dropstuff" >}} This stuff drops down because you clicked on the text. {{< /dropdown/content >}} exampleSite/content/interesting.md
@@ -9,7 +9,8 @@ --- Here's some interesting text on an interesting page. That image on the left? It'll randomly change on load between the ones in "sideimages". <br><a href="javascript:toggleDisplay('drop_stuff');">Stuff that drops down when you click on it:</a> <div id="drop_stuff" style="display:none"> This stuff drops down because you clicked on the text. </div> {{< dropdown/link togglename="dropstuff" linktext="Stuff that drops down when you click on it top:" >}} {{< dropdown/content togglename="dropstuff" >}} This stuff drops down because you clicked on the text. {{< /dropdown/content >}} layouts/shortcodes/dropdown/content.html
New file @@ -0,0 +1 @@ <div id="{{ .Get "togglename" }}" style="display:none">{{ .Inner }}</div> layouts/shortcodes/dropdown/link.html
New file @@ -0,0 +1 @@ <a href="javascript:toggleDisplay('{{ .Get "togglename" }}');">{{ .Get "linktext" }}</a>