-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy patharticle6.xml
More file actions
37 lines (37 loc) · 1.73 KB
/
article6.xml
File metadata and controls
37 lines (37 loc) · 1.73 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
32
33
34
35
36
37
<article data-sblg-article="1" data-sblg-tags="howto">
<header>
<h2>How do I work with tags?</h2>
<div>Posted by <address>Kristaps Dzonsons</address> on <time datetime="2014-08-02">02 August, 2014</time></div>
</header>
<aside>How to make tag indexes and clouds. (Don't use clouds: they're ridiculous.)</aside>
<p>
Tags are useful for organising your content.
As of version 0.1.1, you can specify tags for each article as follows:
</p>
<pre class="prettyprint lang-html"><article data-sblg-article="1" data-sblg-tags="foo bar">
<header>
<h1>Title</h1>
<address>Kristaps Dzonsons</address>
<time datetime="2013-01-01">1 January, 2013</time>
</header>
<aside>
The article's <b>summary</b>
</aside>
<code data-sblg-tags="baz">Mu.</code>
</article></pre>
<p>
The <code class="prettyprint lang-html"><article data-sblg-tags=""></code> attribute indicates the tags of an article. In
this article's case, that's <code>foo</code>, <code>bar</code>, and <code>baz</code>.
You can have as many space-separated tags as you'd like.
</p>
<p>
Once you've added the tags, you can use them when generating <code class="prettyprint lang-html"><nav></code> entries in
the blog amalgation. This is used in the <a href="index.html">index.html</a> page of this site.
</p>
<pre class="prettyprint lang-html"><nav data-sblg-nav="1" data-sblg-navtag="foo"></nav></pre>
<p>
The above navigation element will only display entries with the <code>foo</code> tag.
If you have multiple space-separated words in the <code>data-sblg-navtag</code> attribute, it will <q>OR</q> them together when
selecting.
</p>
</article>