mirror of https://github.com/kc0bfv/ticky_tacky_dark.git

Karl
19.28.2020 0c27151f6a76d45be496442ec995e5e33d11787a
Fix HTML omission by adding shortcode
2 files added
3 files modified
29 ■■■■■ changed files
exampleSite/content/awesome.md 9 ●●●●● patch | view | raw | blame | history
exampleSite/content/cool.md 9 ●●●●● patch | view | raw | blame | history
exampleSite/content/interesting.md 9 ●●●●● patch | view | raw | blame | history
layouts/shortcodes/dropdown/content.html 1 ●●●● patch | view | raw | blame | history
layouts/shortcodes/dropdown/link.html 1 ●●●● 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>