1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- {:title "Adoc Post"
- :layout :post
- :tags ["cryogen" "asciidoc"]
- :toc false
- }
- :toc: macro
- == Example Asciidoc Post ==
- This is an example asciidoc post.
- You can use a manually placed table of contents by setting `:toc false` in the front matter, but use `:toc: macro` at the top of the post, and `toc::[]` where the table of contents is supposed to be, like here:
- toc::[]
- === Section 1 ===
- .Heading
- With some text and maybe even a bulleted list:
- - Thing 1
- - Thing 2
- Or how about some *bold* or _italicized_ text?
- === Section 2 ===
- Will a code snippet work?
- .bash
- [source,bash]
- ----
- $ echo "foo"
- ----
- .clojure
- [source,clojure]
- ----
- (defn echo [s]
- (println s))
- ----
|