diff --git a/_data/tags.yml b/_data/tags.yml new file mode 100644 index 0000000000000000000000000000000000000000..6a113c044f05cc3169959aea4e77652897567095 --- /dev/null +++ b/_data/tags.yml @@ -0,0 +1,39 @@ +- slug: monero missives + name: Monero Missives + +- slug: conferences + name: Conferences + +- slug: exchanges + name: Exchanges + +- slug: gui + name: Monero Core GUI + +- slug: usability + name: Usability + +- slug: dev diaries + name: Dev Diaries + +- slug: mining + name: Mining + +- slug: i2p + name: i2p + +- slug: rpc + name: RPC API + +- slug: docs + name: Documentation + +- slug: branding + name: Branding and Graphics + +- slug: compliance + name: Standards Compliance + +- slug: crypto + name: Cryptography + diff --git a/_layouts/blog_by_tag.html b/_layouts/blog_by_tag.html new file mode 100644 index 0000000000000000000000000000000000000000..bc26d42dcf69ebe18552a62cb29f8fefcc65f0b4 --- /dev/null +++ b/_layouts/blog_by_tag.html @@ -0,0 +1,26 @@ +--- +layout: default +--- + +{% assign filename = page.path | remove: '.md' | split: '/' | last %} + +{% for data_tag in site.data.tags %} + {% if data_tag.slug == filename %} + {% assign tag = data_tag %} + {% endif %} +{% endfor %} + +<h1>{% t tags.all %}: <span class="kicks">{{ tag.name }}</span></h1> +<div> + {% if site.tags[tag.slug] %} + {% for post in site.tags[tag.slug] %} + <h3><a href="{{ post.url }}">{{ post.title }}</a></h3> + <blockquote> + {{ post.summary }} + </blockquote> + {% endfor %} + {% else %} + <h3>There are no posts for this tag.</h3> + {% endif %} +</div> + diff --git a/_layouts/default.html b/_layouts/default.html index 49bc63a17805d3a3198d8dc079fb8a11ec5fc2ca..145bbb1257e4b91649fd29adec40f2da579b1d28 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="en"> +<html> {% include head.html %} diff --git a/_layouts/none.html b/_layouts/none.html new file mode 100644 index 0000000000000000000000000000000000000000..a399d4e79e7f5a0cca2a5aaa03845dd43c7f0e5f --- /dev/null +++ b/_layouts/none.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang="en"> + + <body> + + {{ content }} + + </body> + +</html> diff --git a/_layouts/post.html b/_layouts/post.html index 95ff25b9ccdffd21f72203d14ada7cc2c0eca146..5e6d186743f5eb046a466ff05bf61067cf346798 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,6 +1,24 @@ --- layout: default --- +{% assign post = page %} +{% if post.tags.size > 0 %} + {% capture tags_content %}Post tags {% if post.tags.size == 1 %}<i class="fa fa-tag"></i>{% else %}<i class="fa fa-tags"></i>{% endif %}: {% endcapture %} + {% for post_tag in post.tags %} + {% for data_tag in site.data.tags %} + {% if data_tag.slug == post_tag %} + {% assign tag = data_tag %} + {% endif %} + {% endfor %} + {% if tag %} + {% capture tags_content_temp %}{{ tags_content }}<a href="/blog/tags/{{ tag.slug }}">{{ tag.name }}</a>{% if forloop.last == false %}, {% endif %}{% endcapture %} + {% assign tags_content = tags_content_temp %} + {% endif %} + {% endfor %} +{% else %} + {% assign tags_content = '' %} +{% endif %} + <article> <header> <h2>{{ page.title }}</h2> @@ -11,6 +29,6 @@ layout: default <div class="entry">{{ content }}</div> - <footer><!-- additional info --></footer> + <footer><p id="post-meta">{{ tags_content }}</p></footer> </article> \ No newline at end of file diff --git a/_layouts/root.html b/_layouts/root.html index b6e39ec3fef051e9634a3a22235bf5ecaff1a09e..b924495f242f2cbb217d92f6b7f9b05de8b2123e 100644 --- a/_layouts/root.html +++ b/_layouts/root.html @@ -1,6 +1,6 @@ {% include language_cookie.php %} <!DOCTYPE html> -<html lang="en"> +<html> {% include head.html %} diff --git a/_strings_en.yml b/_strings_en.yml index 21cf9b40eaa7e434683c191cc0fec37e4541350c..06de2b4ff56c71fe7d65955671bc827b2be44fe0 100644 --- a/_strings_en.yml +++ b/_strings_en.yml @@ -86,4 +86,6 @@ blog: title_1: All title_2: Blog title_3: Posts - tagged: Tagged under \ No newline at end of file + tagged: Tagged under +tags: + all: Articles by Tag diff --git a/alltags.md b/alltags.md new file mode 100644 index 0000000000000000000000000000000000000000..0fe7ef284733dabecd08fddbc5a3f28ad40c290c --- /dev/null +++ b/alltags.md @@ -0,0 +1,8 @@ +--- +layout: none +--- + +<pre> +{% for post in site.posts %}{% for tag in post.tags %}{{ tag }} +{% endfor %}{% endfor %} +</pre> diff --git a/blog/tags/branding.md b/blog/tags/branding.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/branding.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/compliance.md b/blog/tags/compliance.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/compliance.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/conferences.md b/blog/tags/conferences.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/conferences.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/crypto.md b/blog/tags/crypto.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/crypto.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/dev diaries.md b/blog/tags/dev diaries.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/dev diaries.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/docs.md b/blog/tags/docs.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/docs.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/exchanges.md b/blog/tags/exchanges.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/exchanges.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/gui.md b/blog/tags/gui.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/gui.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/i2p.md b/blog/tags/i2p.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/i2p.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/mining.md b/blog/tags/mining.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/mining.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/monero missives.md b/blog/tags/monero missives.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/monero missives.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/rpc.md b/blog/tags/rpc.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/rpc.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/blog/tags/usability.md b/blog/tags/usability.md new file mode 100644 index 0000000000000000000000000000000000000000..320028d508d1c18c7fa5c93e6b86123a66b3926a --- /dev/null +++ b/blog/tags/usability.md @@ -0,0 +1,3 @@ +--- +layout: blog_by_tag +--- \ No newline at end of file diff --git a/knowledge-base/how-to/use-simplewallet.md b/knowledge-base/how-to/use-simplewallet.md index 6018d426c28b92f0763ac3320d9425afc80eef1d..cbc71f132e82a57773431ff7fbe751db5b1c64f2 100644 --- a/knowledge-base/how-to/use-simplewallet.md +++ b/knowledge-base/how-to/use-simplewallet.md @@ -1,6 +1,5 @@ --- layout: default -translated_name: files.simplewallet --- #How to Use simplewallet diff --git a/knowledge-base/vocabulary/vocab.md b/knowledge-base/vocabulary/vocab.md index b5b0d1f64ba943d9d065dd758bb5dd1f3e2619bb..429a5faaf2a4d6c5d72eaea6ba2d348111f108b8 100644 --- a/knowledge-base/vocabulary/vocab.md +++ b/knowledge-base/vocabulary/vocab.md @@ -1,6 +1,5 @@ --- layout: default -translated_name: files.vocab --- #Vocab