nourhans-blog/content/asc/posts/2014-10-10-adoc-post.asc
2026-08-26 17:50:14 +01:00

44 lines
690 B
Text

{: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))
----