-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy patharticle9.xml
More file actions
31 lines (31 loc) · 1.68 KB
/
article9.xml
File metadata and controls
31 lines (31 loc) · 1.68 KB
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
<article data-sblg-article="1" data-sblg-tags="howto">
<header>
<h2>How do I use tag symbols?</h2>
<div>Posted by <address>Kristaps Dzonsons</address> on <time datetime="2015-05-23">23 May, 2015</time></div>
</header>
<aside>Tips and tricks for using sblg: using tag symbols.</aside>
<p>
Tag symbols appear in XML input files and templates and are filled in with information pertaining to the current relevant
article.
For example, the default navigation list can be customised by specifying re-use of internal contents and using tag symbols.
This can be seen in the <a href="index.html#blog">blog-roll</a> and are described in <a href="article7.html">Tips and
Tricks: Fancy Navigation</a>.
</p>
<p>
Tags are even more useful in combined mode described in <a href="sblg.1.html">sblg(1)</a>, which is how this file
was created:
</p>
<pre class="prettyprint lang-sh">% sblg -o article9.html -C article9.xml article1.xml ... article9.xml</pre>
<p>
<strong>Note</strong>: using this invocation is the same reason why the permanent link below this page doesn't work properly!
(This is described in <a href="sblg.1.html">sblg(1)</a>, and is a known caveat to be solved later.)
</p>
<p>
Now if I use the ${sblg-prev-base} to show the <a href="${sblg-prev-base}.html">previous article</a> when chronologically
ordered.
To do this, I embedded the ${sblg-prev-base}.html link into the anchor.
If I specify the ${sblg-prev-base} (note that in both cases, I HTML-escaped the dollar sign in this article so it wasn't
interpreted as a tag itself!) it goes to the <a href="${sblg-next-base}.html">next article</a>, wrapping around to the oldest if
it's the newest.
</p>
</article>