<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>AsciiDoc</title><link>https://justwheel.github.io/toph-hugo-theme/tags/asciidoc/</link><description>Honorary biography page of Septima Clark, a Civil Rights Movement pioneer and activist.</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>Septima Poinsette Clark</managingEditor><lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate><atom:link href="https://justwheel.github.io/toph-hugo-theme/rss/tags/asciidoc/index.xml" rel="self" type="application/rss+xml"/><item><title>Blogging with AsciiDoc in Toph</title><link>https://justwheel.github.io/toph-hugo-theme/blog/asciidoc-blogging/</link><pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate><guid>https://justwheel.github.io/toph-hugo-theme/blog/asciidoc-blogging/</guid><description><![CDATA[<div class="paragraph">
<p>Toph treats AsciiDoc as a first-class content format.
Everything that works with Markdown also works with AsciiDoc — taxonomy badges, post metadata, cover images, heading anchors, and navigation.</p>
</div>
<div class="sect1">
<h2 id="_why_asciidoc">Why AsciiDoc?</h2>
<div class="sectionbody">
<div class="paragraph">
<p>AsciiDoc offers features that Markdown does not:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Native table of contents with <code>:toc:</code> document attribute</p>
</li>
<li>
<p>Admonition blocks (NOTE, TIP, WARNING, IMPORTANT, CAUTION)</p>
</li>
<li>
<p>Include directives for reusing content across pages</p>
</li>
<li>
<p>Built-in support for complex tables and nested lists</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>If you are already comfortable writing in AsciiDoc, Toph will serve your needs without compromise.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_creating_an_asciidoc_post">Creating an AsciiDoc post</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Create a file with the <code>.adoc</code> extension in your blog directory:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">hugo new blog/my-post.adoc</code></pre>
</div>
</div>
<div class="paragraph">
<p>Add YAML front matter at the top of the file, followed by AsciiDoc content:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">---
title: &#34;My Post Title&#34;
date: 2026-01-15
draft: false
categories:
  - &#34;tech&#34;
tags:
  - &#34;hugo&#34;
  - &#34;asciidoc&#34;
author: &#34;Author Name&#34;
description: &#34;A short summary of the post.&#34;
---

Your AsciiDoc content starts here.</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_table_of_contents">Table of contents</h2>
<div class="sectionbody">
<div class="paragraph">
<p>To enable a table of contents, add the <code>:toc:</code> attribute after the front matter:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">---
title: &#34;My Post Title&#34;
toc: true
---
:toc:

== First Section</code></pre>
</div>
</div>
<div class="paragraph">
<p>Toph’s CSS styles the AsciiDoc-generated table of contents identically to Markdown’s <code>toc: true</code> front matter option.
Both formats produce the same visual result.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_heading_anchors">Heading anchors</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Clickable anchor links (🔗) appear on hover for all section headings.
For Markdown, this is handled by a Hugo render hook.
For AsciiDoc, Toph injects the same anchor markup via template processing.
Both formats produce identical results.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_learn_more">Learn more</h2>
<div class="sectionbody">
<div class="ulist">
<ul>
<li>
<p><a href="https://docs.asciidoctor.org/asciidoc/latest/">AsciiDoc Language Documentation</a></p>
</li>
<li>
<p><a href="https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/">AsciiDoc Syntax Quick Reference</a></p>
</li>
<li>
<p><a href="https://gohugo.io/content-management/formats/#asciidoc">Hugo AsciiDoc Support</a></p>
</li>
</ul>
</div>
</div>
</div>
]]></description></item></channel></rss>