Initial commit.
This commit is contained in:
commit
b2e2fde818
36 changed files with 1475 additions and 0 deletions
44
content/asc/posts/2014-10-10-adoc-post.asc
Normal file
44
content/asc/posts/2014-10-10-adoc-post.asc
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{: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))
|
||||
----
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue