]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Merge branch 'master' of ssh://git.ikiwiki.info
authorJoey Hess <joey@kitenet.net>
Fri, 8 Nov 2013 18:33:05 +0000 (14:33 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 8 Nov 2013 18:33:05 +0000 (14:33 -0400)
doc/ikiwiki/directive/toggle/discussion.mdwn [new file with mode: 0644]

diff --git a/doc/ikiwiki/directive/toggle/discussion.mdwn b/doc/ikiwiki/directive/toggle/discussion.mdwn
new file mode 100644 (file)
index 0000000..e6507ae
--- /dev/null
@@ -0,0 +1,15 @@
+IMHO, i would be very useful to be able to customise the toggle indicator a little bit more. Something like the img directive parameters would be appreciated:
+
+> You can also pass alt, title, class, align, id, hspace, and vspace parameters. These are passed through unchanged to the html img tag. If you include a caption parameter, the caption will be displayed centered beneath the image.
+
+So that for instance:
+
+     \[[!toggle id="toggleable-id" text="Toggle" class="collapser"]]
+
+could produce:
+
+     <a class="toggle collapser" href="#posts.toggleable-id">Toggle</a>
+
+This could be extra-useful when using icons like [Font Awesome](http://fortawesome.github.io/Font-Awesome/icons/) so that the toggle link could be a nice icon instead of text.
+
+-- Hugo