2014-10-10-adoc-post.asc 690 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {:title "Adoc Post"
  2. :layout :post
  3. :tags ["cryogen" "asciidoc"]
  4. :toc false
  5. }
  6. :toc: macro
  7. == Example Asciidoc Post ==
  8. This is an example asciidoc post.
  9. 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:
  10. toc::[]
  11. === Section 1 ===
  12. .Heading
  13. With some text and maybe even a bulleted list:
  14. - Thing 1
  15. - Thing 2
  16. Or how about some *bold* or _italicized_ text?
  17. === Section 2 ===
  18. Will a code snippet work?
  19. .bash
  20. [source,bash]
  21. ----
  22. $ echo "foo"
  23. ----
  24. .clojure
  25. [source,clojure]
  26. ----
  27. (defn echo [s]
  28. (println s))
  29. ----