Update dropdown shortcode to use HTML details
Also - more balanced screenshots
2 files deleted
1 files added
7 files modified
| | |
| | | |
| | | ### Dropdown Text |
| | | |
| | | To add a link that, when clicked, drops-down a section of text, use shortcode `dropdown/link` and shortcode `dropdown/content`. |
| | | To add an HTML details element that, when clicked, drops-down a section of text, use shortcode `dropdown`. |
| | | |
| | | **Example** |
| | | |
| | | ``` |
| | | {{< dropdown/link togglename="dropNum1" linktext="Click here to see the text that will drop down." >}} |
| | | ``` |
| | | |
| | | ``` |
| | | {{< dropdown/content togglename="dropNum1" >}} |
| | | {{< dropdown summary="Click here to see the text that will drop down." >}} |
| | | This is the text that drops down when you click the link. |
| | | {{< /dropdown/content >}} |
| | | {{< /dropdown >}} |
| | | ``` |
| | | |
| | | ## Usage |
| | |
| | | </style> |
| | | {{< /css.inline >}} |
| | | |
| | | {{< dropdown/link togglename="dropstuff" linktext="This demonstrates the dropdown shortcode. Click this." >}} |
| | | |
| | | {{< dropdown/content togglename="dropstuff" >}} |
| | | {{< dropdown summary="This demonstrates the dropdown shortcode. Click this." >}} |
| | | This stuff drops down because you clicked on the text. |
| | | {{< /dropdown/content >}} |
| | | {{< /dropdown >}} |
| | |
| | | images: ["img/interesting01.jpg"] |
| | | imagealt: "Interesting Page Image" |
| | | draft: false |
| | | weight: 3 |
| | | weight: 2 |
| | | --- |
| | | |
| | | This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. |
| | |
| | | draft: false |
| | | buttonimage: "img/redirbutton.jpg" |
| | | actualurl: "https://github.com/kc0bfv/ticky_tacky_dark" |
| | | weight: 2 |
| | | weight: 3 |
| | | --- |
| | | |
| | |
| | | </noscript> |
| | | |
| | | <script> |
| | | function toggleDisplay( elementID ) { |
| | | elem = document.getElementById(elementID); |
| | | if( elem.style.display == "none" ) { |
| | | elem.style.display = "block"; |
| | | } else if( elem.style.display == "block" ) { |
| | | elem.style.display = "none"; |
| | | } |
| | | } |
| | | {{ with .Site.Params.images }} |
| | | function randomHeaderImg() { |
| | | let images = [ |
| New file |
| | |
| | | <details> |
| | | <summary>{{ .Get "summary" }}</summary> |
| | | {{ .Inner }} |
| | | </details> |