/
article4.xml
54 lines (54 loc) · 3.46 KB
/
article4.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<article data-sblg-article="1" data-sblg-tags="howto">
<header>
<h2>What about feeds?</h2>
<div>Posted by <address>Kristaps Dzonsons</address> on <time datetime="2013-06-29">29 June, 2013</time></div>
</header>
<aside>How to use the Atom feed feature.</aside>
<p>
<span class="name">sblg</span> will generate <a href="https://en.wikipedia.org/wiki/Atom_%28standard%29">Atom</a> feeds when
given the <code>-<b>a</b></code> flag.
Its behaviour follows <a href="sblg.1.html">sblg(1)</a>'s description of blog mode.
All you need to do is provide an Atom <a href="atom-template.xml">template</a>; the <code class="prettyprint
lang-html"><entry></code>, <code class="prettyprint lang-html"><updated></code>, and <code
class="prettyprint lang-html"><id></code> (the <code class="prettyprint lang-html"><id></code> field must
occur after the <code class="prettyprint lang-html"><link></code>) fields will be automatically filled in.
</p>
<p>
This site has a dummy <a href="atom.xml">atom.xml</a> for each of this page's <q>articles</q>.
</p>
<p class="code">
<code class="prettyprint"><?xml version="1.0" encoding="utf-8"?></code>
<code class="prettyprint"><feed xmlns="http://www.w3.org/2005/Atom"></code>
<code class="prettyprint tab"><title>sblg Example Feed</title></code>
<code class="prettyprint tab"><link href="http://kristaps.bsd.lv/sblg/atom.xml" rel="self" /></code>
<code class="prettyprint tab"><link href="http://kristaps.bsd.lv/sblg" /></code>
<code class="prettyprint tab"><id data-sblg-id="1" /></code>
<code class="prettyprint tab"><updated data-sblg-updated="1" /></code>
<code class="prettyprint tab"><entry data-sblg-entry="1" /></code>
<code class="prettyprint tab"><entry data-sblg-entry="1" /></code>
<code class="prettyprint tab"><entry data-sblg-entry="1" /></code>
<code class="prettyprint"></feed></code>
</p>
<p>
Filled-in entries consist of <code class="prettyprint lang-html"><title></code>, <code class="prettyprint
lang-html"><id></code>, <code class="prettyprint lang-html"><updated></code>,
<code class="prettyprint lang-html"><author></code>, and alternate <code class="prettyprint lang-html"><link></code> elements.
If specified in the original article, a <code class="prettyprint lang-html"><content></code> element will consist of an
HTML article summary, or the full article if so specified. See the <a href="sblg.1.html">sblg(1)</a> manual for details.
Or making it shorter…
</p>
<p class="code">
<code class="prettyprint"><?xml version="1.0" encoding="utf-8"?></code>
<code class="prettyprint"><feed xmlns="http://www.w3.org/2005/Atom"></code>
<code class="prettyprint tab"><title>sblg Example Feed</title></code>
<code class="prettyprint tab"><link href="http://kristaps.bsd.lv/sblg/atom.xml" rel="self" /></code>
<code class="prettyprint tab"><link href="http://kristaps.bsd.lv/sblg" /></code>
<code class="prettyprint tab"><id data-sblg-id="1" /></code>
<code class="prettyprint tab"><updated data-sblg-updated="1" /></code>
<code class="prettyprint tab"><entry data-sblg-forall="1" data-sblg-entry="1" /></code>
<code class="prettyprint"></feed></code>
</p>
<p>
Remember to link to the feed in your <a href="index.xml">blog template</a> or <a href="article.xml">article template</a> file!
</p>
</article>