Skip to content

Commit 69d8d3a

Browse files
update blog post-tags style
1 parent ad9c57f commit 69d8d3a

File tree

2 files changed

+27
-32
lines changed

2 files changed

+27
-32
lines changed

_layouts/post.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,21 @@
1919
<h1 class="post-title">{{ page.title }}</h1>
2020
<p class="post-meta">{{ page.date | date: "%B %-d, %Y" }}{%- if page.author -%} • {{ page.author }}{%- endif -%}{%- if page.meta -%} • {{ page.meta }}{%- endif -%}</p>
2121
<p class="post-tags">
22-
<a href="{{ year | prepend: '/blog/' | prepend: site.baseurl}}"> <i class="fas fa-calendar fa-sm"></i> {{ year }} </a>
22+
<a href="{{ year | prepend: '/blog/' | prepend: site.baseurl}}"> <i class="fas fa-calendar fa-sm pe-1"></i> {{ year }} </a>
2323
{%- if tags != "" %}
24-
&nbsp; &middot; &nbsp;
24+
&nbsp; &bull; &nbsp;
2525
{% for tag in page.tags -%}
2626
<a href="{{ tag | prepend: '/blog/tag/' | prepend: site.baseurl}}">
27-
<i class="fas fa-hashtag fa-sm"></i> {{ tag }}</a> &nbsp;
28-
{% endfor -%}
27+
<i class="fas fa-hashtag fa-sm pe-1"></i> {{ tag }}</a>{% unless forloop.last %} &nbsp; {% endunless %}
28+
{% endfor -%}
2929
{% endif %}
30-
31-
{%- if categories != "" %}
32-
&nbsp; &middot; &nbsp;
33-
{% for category in page.categories -%}
30+
{% if categories != "" %}
31+
&nbsp; &bull; &nbsp;
32+
{% for category in page.categories %}
3433
<a href="{{ category | prepend: '/blog/category/' | prepend: site.baseurl}}">
35-
<i class="fas fa-tag fa-sm"></i> {{ category }}</a> &nbsp;
36-
{% endfor -%}
34+
<i class="fas fa-tag fa-sm pe-1"></i> {{ category }}</a>{% unless forloop.last %} &nbsp; {% endunless %}
35+
{% endfor -%}
3736
{% endif %}
38-
3937
</p>
4038
</header>
4139

blog/index.html

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -64,32 +64,29 @@ <h3>
6464
</h3>
6565
<p>{{ post.description }}</p>
6666
<p class="post-meta">
67-
{{ read_time }} min read &nbsp; &middot; &nbsp;
67+
{{ read_time }} min read &nbsp; &bull; &nbsp;
6868
{{ post.date | date: '%B %-d, %Y' }}
6969
{%- if post.external_source %}
70-
&nbsp; &middot; &nbsp; {{ post.external_source }}
70+
&nbsp; &bull; &nbsp; {{ post.external_source }}
7171
{%- endif %}
7272
</p>
7373
<p class="post-tags">
74-
<a href="{{ year | prepend: '/blog/' | prepend: site.baseurl}}">
75-
<i class="fas fa-calendar fa-sm"></i> {{ year }} </a>
76-
77-
{% if tags != "" %}
78-
&nbsp; &middot; &nbsp;
79-
{% for tag in post.tags %}
80-
<a href="{{ tag | prepend: '/blog/tag/' | prepend: site.baseurl}}">
81-
<i class="fas fa-hashtag fa-sm"></i> {{ tag }}</a> &nbsp;
82-
{% endfor %}
83-
{% endif %}
84-
85-
{% if categories != "" %}
86-
&nbsp; &middot; &nbsp;
87-
{% for category in post.categories %}
88-
<a href="{{ category | prepend: '/blog/category/' | prepend: site.baseurl}}">
89-
<i class="fas fa-tag fa-sm"></i> {{ category }}</a> &nbsp;
90-
{% endfor %}
91-
{% endif %}
92-
</p>
74+
<a href="{{ year | prepend: '/blog/' | prepend: site.baseurl}}"> <i class="fas fa-calendar fa-sm pe-1"></i> {{ year }} </a>
75+
{%- if tags != "" %}
76+
&nbsp; &bull; &nbsp;
77+
{% for tag in post.tags -%}
78+
<a href="{{ tag | prepend: '/blog/tag/' | prepend: site.baseurl}}">
79+
<i class="fas fa-hashtag fa-sm pe-1"></i> {{ tag }}</a>{% unless forloop.last %} &nbsp; {% endunless %}
80+
{% endfor -%}
81+
{% endif %}
82+
{% if categories != "" %}
83+
&nbsp; &bull; &nbsp;
84+
{% for category in post.categories %}
85+
<a href="{{ category | prepend: '/blog/category/' | prepend: site.baseurl}}">
86+
<i class="fas fa-tag fa-sm pe-1"></i> {{ category }}</a>{% unless forloop.last %} &nbsp; {% endunless %}
87+
{% endfor -%}
88+
{% endif %}
89+
</p>
9390
</li>
9491

9592
{% endfor %}

0 commit comments

Comments
 (0)