mirror of
https://github.com/avitex/avitex.github.io
synced 2025-01-15 12:29:57 +00:00
remove categories, use only tags
This commit is contained in:
parent
091f630af2
commit
b7ca40eb5a
@ -9,7 +9,6 @@ generate_rss = true
|
|||||||
|
|
||||||
taxonomies = [
|
taxonomies = [
|
||||||
{name = "blog/tags", rss = true},
|
{name = "blog/tags", rss = true},
|
||||||
{name = "blog/categories", rss = true}
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
@ -20,7 +19,6 @@ name = "Blog"
|
|||||||
url = "/blog"
|
url = "/blog"
|
||||||
sub = [
|
sub = [
|
||||||
{name = "Latest", url = "/blog"},
|
{name = "Latest", url = "/blog"},
|
||||||
{name = "Categories", url = "/blog/categories"},
|
|
||||||
{name = "Tags", url = "/blog/tags"}
|
{name = "Tags", url = "/blog/tags"}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3,8 +3,7 @@ title = "Hello World"
|
|||||||
date = 2018-08-22
|
date = 2018-08-22
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
"blog/tags" = ["new"]
|
"blog/tags" = ["meta", "new"]
|
||||||
"blog/categories" = ["meta"]
|
|
||||||
+++
|
+++
|
||||||
|
|
||||||
Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.
|
Thought it would be a good idea to have somewhere to put my ramblings, and so I am here.
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
{% extends "content.html" %}
|
|
||||||
{% block title %}Categories - {{ config.title }}{% endblock %}
|
|
||||||
{% block content %}
|
|
||||||
<h1>Categories</h1>
|
|
||||||
{% if terms %}
|
|
||||||
<ul>
|
|
||||||
{% for term in terms %}
|
|
||||||
<li><a href="{{ term.permalink }}">{{ term.name }}</a> ({{ term.pages | length }})</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock content %}
|
|
@ -1,9 +0,0 @@
|
|||||||
{% extends "content.html" %}
|
|
||||||
{% import "post_macros.html" as post_macros %}
|
|
||||||
{% block title %}Category {{ term.name }} - {{ config.title }}{% endblock %}
|
|
||||||
{% block content %}
|
|
||||||
<h1>Category: <code>{{ term.name }}</code> <small>(<a href="{{ get_taxonomy_url(kind="blog/categories", name=term.name) }}rss.xml">RSS</a>)</small></h1>
|
|
||||||
{% for page in term.pages %}
|
|
||||||
{{ post_macros::page_in_list(page=page) }}
|
|
||||||
{% endfor %}
|
|
||||||
{% endblock content %}
|
|
@ -18,13 +18,9 @@
|
|||||||
{% if config.extra.author %}
|
{% if config.extra.author %}
|
||||||
Published by {{ config.extra.author }}
|
Published by {{ config.extra.author }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.taxonomies | get(key="blog/categories") %}
|
|
||||||
{% set categories = page.taxonomies | get(key="blog/categories") %}
|
|
||||||
in <a href="{{ get_taxonomy_url(kind="blog/categories", name=categories[0]) | safe }}">{{ categories[0] }}</a>
|
|
||||||
{% endif %}
|
|
||||||
{% set tags = page.taxonomies | get(key="blog/tags") %}
|
{% set tags = page.taxonomies | get(key="blog/tags") %}
|
||||||
{% if tags %}
|
{% if tags %}
|
||||||
and tagged
|
with tags
|
||||||
{% for tag in tags %}
|
{% for tag in tags %}
|
||||||
<a href="{{ get_taxonomy_url(kind="blog/tags", name=tag) | safe }}">{{ tag }}</a>
|
<a href="{{ get_taxonomy_url(kind="blog/tags", name=tag) | safe }}">{{ tag }}</a>
|
||||||
{% if tags | length > 1 %}
|
{% if tags | length > 1 %}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends "content.html" %}
|
{% extends "content.html" %}
|
||||||
{% block title %}Tag - {{ config.title }}{% endblock %}
|
{% block title %}Tag - {{ config.title }}{% endblock %}
|
||||||
|
{% block meta_description %}Full list of tags used for articles within the blog.{% endblock meta_description %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Tags</h1>
|
<h1>Tags</h1>
|
||||||
{% if terms %}
|
{% if terms %}
|
||||||
|
Loading…
Reference in New Issue
Block a user