-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy patharticle4.xml
50 lines (50 loc) · 2.79 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
<article data-sblg-article="1" data-sblg-tags="howto">
<header>
<h2>How do I generate Atom 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>
<pre class="prettyprint lang-xml"><?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>sblg Example Feed</title>
<link href="http://kristaps.bsd.lv/sblg/atom.xml" rel="self" />
<link href="http://kristaps.bsd.lv/sblg" />
<id data-sblg-id="1" />
<updated data-sblg-updated="1" />
<entry data-sblg-entry="1" />
<entry data-sblg-entry="1" />
<entry data-sblg-entry="1" />
</feed></pre>
<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>
<pre class="prettyprint lang-xml"><?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>sblg Example Feed</title>
<link href="http://kristaps.bsd.lv/sblg/atom.xml" rel="self" />
<link href="http://kristaps.bsd.lv/sblg" />
<id data-sblg-id="1" />
<updated data-sblg-updated="1" />
<entry data-sblg-forall="1" data-sblg-entry="1" />
</feed></pre>
<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>