mirror of
https://github.com/edg-l/edgarluque.com.git
synced 2024-11-10 01:58:22 +00:00
categories
This commit is contained in:
parent
8f6f860f89
commit
008b4ceb20
|
@ -176,3 +176,7 @@ a.title {
|
||||||
.capitalize {
|
.capitalize {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.category-link {
|
||||||
|
color: gray;
|
||||||
|
}
|
|
@ -8,14 +8,16 @@
|
||||||
{% set section = get_section(path="blog/_index.md") %}
|
{% set section = get_section(path="blog/_index.md") %}
|
||||||
<h2>Articles</h2>
|
<h2>Articles</h2>
|
||||||
<ul class="posts">
|
<ul class="posts">
|
||||||
{% for page in section.pages %}
|
{% for page in section.pages %}
|
||||||
<li>
|
<li>
|
||||||
<span><time datetime="{{ page.date }}">{{ page.date }}</time>: </span>
|
<span><time datetime="{{ page.date }}">{{ page.date }}</time>: </span>
|
||||||
<a href="{{ page.permalink }}" title="{{ page.description }}"
|
<a href="{{ page.permalink }}" title="{{ page.description }}"
|
||||||
>{{ page.title }}</a
|
>{{ page.title }}</a>
|
||||||
>
|
| {% for category in page.taxonomies["categories"] %}
|
||||||
</li>
|
<a class="category-link capitalize" href="/categories/{{category}}">{{ category }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in a new issue