Skip to content

Commit 3124b63

Browse files
committed
Update post (to show only the categories of the actual post)
1 parent f8e4ec3 commit 3124b63

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

_layouts/post.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
1616
{%- if page.author -%}
1717
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }} </span></span>
1818
{%- endif -%}
19-
{% for category in site.categories %}
19+
{% for category in page.categories %}
2020
{% if forloop.first %}
2121
2222
{% endif %}
23-
{% assign topic_name = category[0] %}
24-
<a href="/blog/topic/{{ topic_name }}">{{ site.data.strings.topics[topic_name] }}</a>
23+
<a href="/blog/topic/{{ category }}">{{ site.data.strings.topics[category] }}</a>
2524
{% if forloop.last == false %}
2625
|
2726
{% endif %}

0 commit comments

Comments
 (0)