67661cb716
* patched wikicloth to serve anchor links for sections * added table of contents * subpages list doesn't show up per default
9 lines
No EOL
277 B
Text
9 lines
No EOL
277 B
Text
- content = wikified_body @page.body, @page.title
|
|
- toc = generate_toc @page.body
|
|
- unless toc.blank?
|
|
#wikitoc
|
|
%h2
|
|
Inhaltsverzeichnis
|
|
%span= link_to_function "[verstecken]", "Element.toggle('wikitoc-content')"
|
|
#wikitoc-content= toc
|
|
#wiki_content= content |