Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags improvements #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _includes/date_and_social_share.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{% if site.theme_config.show_tags == true %}
<div class="">
{% for tag in page.tags %}
<span class="tag">{{ tag }}</span>
<a class="tag" href="{{ "/blog" | absolute_url }}#{{tag}}">{{ tag }}</a>
{% endfor %}
</div>
{% endif %}
23 changes: 23 additions & 0 deletions _includes/post_list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
{% if site.posts.size > 0 %}
{% if site.theme_config.show_tags == true %}
<details>
<summary>Tags:</summary>
<ul>
{% for tag in site.tags %}
<li>
<details class="tag">
<summary>{{ tag[0] }}</summary>
<span id="{{tag[0]}}">
<ul>
{% for post in tag[1] %}
<li>
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</span>
</details>
</li>
{% endfor %}
</ul>
</details>
{% endif %}
<ul>
{% for post in site.posts %}
<li class="post-list-item">
Expand Down