<p>Web feeds are one of the most common ways for a visitor to keep up with someone who creates content.
Nowadays, most social media has that feature such as the subscribing YouTube channels, following Twitter accounts, and watching Deviantart artists.
Outside of those, we have simpler things like <a href="https://www.rssboard.org/rss-2-0-1">RSS</a> and <a href="https://www.jsonfeed.org/">JSON</a> feeds where they are just plain text files describing the content.</p>
</div>
<div class="paragraph">
<p>The Contentful theme doesn’t have a web feed export but we can have it with <a href="https://gohugo.io/hugo-modules/theme-components/">theme components</a>.
For this demo, we’ll use the <a href="https://github.com/foo-dogsquared/hugo-web-feeds">web feed component</a> created by <a href="https://foo-dogsquared.github.io/">foo-dogsquared</a>.</p>
</div>
<div class="paragraph">
<p>If you’re settling with this option, here’s an example template for installing the web feed module and exporting all of the feed formats all in one fell swoop.</p>
<div class="title"><code>CAUTION</code> vs <code>WARNING</code></div>
<div class="paragraph">
<p>As the <a href="https://asciidoctor.org/docs/user-manual/#admonition">user manual</a>
has said, <code>CAUTION</code> and <code>WARNING</code> should be used with different semantics.</p>
</div>
<div class="paragraph">
<p><code>CAUTION</code> basically advises the user to observe care.
<code>WARNING</code> warns the user about the dangers or consequences that’ll exist.</p>
</div>
</div>
</div>
<div class="paragraph">
<p>Writing an admonition is intuitively easy, simply write the label
in all uppercase and append with a colon.
Then write the content after.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">TIP: Lorem ipsum dolor sit amet consectetur adipiscing elit varius cursus
orci nulla, fames nisl sodales scelerisque eu consequat sem imperdiet ac mi
vivamus tempor, accumsan ad justo odio viverra praesent senectus class egestas duis.</code></pre>
</div>
</div>
<div class="paragraph">
<p>It’ll render as this:</p>
</div>
<div class="admonitionblock tip">
<table>
<tbody><tr>
<td class="icon">
<div class="title">Tip</div>
</td>
<td class="content">
Lorem ipsum dolor sit amet consectetur adipiscing elit varius cursus
orci nulla, fames nisl sodales scelerisque eu consequat sem imperdiet ac mi
vivamus tempor, accumsan ad justo odio viverra praesent senectus class egestas duis.
</td>
</tr>
</tbody></table>
</div>
<div class="paragraph">
<p>In case you want to style the labels differently such as assigning
appropriate colors or an icon to the rest of the labels,
here’s the rest of them:</p>
</div>
<div class="admonitionblock note">
<table>
<tbody><tr>
<td class="icon">
<div class="title">Note</div>
</td>
<td class="content">
Malesuada mattis aenean ultrices netus cursus viverra vivamus ultricies,
velit molestie penatibus phasellus in ante luctus, habitant suspendisse eros
<p>A <a href="https://asciidoctor.org/docs/user-manual/#passthroughs">passthrough</a> passes the input as it is on the final output.
This is useful for web-based outputs, for example passing raw HTML for interactive scripts or to create a live result.</p>
</div>
<div class="paragraph">
<p>Below is a very simple example with a <a href="https://p5js.org/">p5.js</a> sketch.</p>
let example_sketch = new p5(sketchuuuuu, &#34;example-sketch&#34;)
&lt;/script&gt;
++++</code></pre>
</div>
</div>
<div class="paragraph">
<p>This is the closest instance of <a href="https://en.wikipedia.org/wiki/Literate_programming">literate programming</a> in the web when using Asciidoctor.
(Sadly, not as flexible or cool as <a href="https://orgmode.org/">Org-Mode</a> or <a href="https://jupyter.org/">Jupyter Notebooks</a>.)</p>