forked from kristapsdz/sblg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharticle6.xml
More file actions
41 lines (41 loc) · 2.23 KB
/
article6.xml
File metadata and controls
41 lines (41 loc) · 2.23 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
38
39
40
41
<article data-sblg-article="1" data-sblg-tags="howto">
<header>
<h2>Tips and Tricks: Tag Indexes</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>
<p class="code">
<code class="prettyprint lang-html"><article data-sblg-article="1" data-sblg-tags="foo bar"></code>
<code class="prettyprint lang-html tab"><header></code>
<code class="prettyprint lang-html dtab"><h1>Title</h1></code>
<code class="prettyprint lang-html dtab"><address>Kristaps Dzonsons</address></code>
<code class="prettyprint lang-html dtab"><time datetime="2013-01-01">1 January, 2013</time></code>
<code class="prettyprint lang-html tab"></header></code>
<code class="prettyprint lang-html tab"><aside></code>
<code class="prettyprint lang-html dtab">The article's <b>summary</b></code>
<code class="prettyprint lang-html tab"></aside></code>
<code class="prettyprint lang-html tab"><code data-sblg-tags="baz">Mu.</code></code>
<code class="prettyprint lang-html"></article></code>
</p>
<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>
<p class="code">
<code class="prettyprint lang-html"><nav data-sblg-nav="1" data-sblg-navtag="foo" /></code>
</p>
<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>