Removed unused codes.

This commit is contained in:
Cotes Chung 2019-09-30 23:02:23 +08:00
parent e7c689e255
commit 5398007cc2

View file

@ -20,28 +20,6 @@ title: Archives
<div> <div>
{% capture this_day %}{{ post.date | date: "%d" }}{% endcapture %} {% capture this_day %}{{ post.date | date: "%d" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%b" }}{% endcapture %} {% capture this_month %}{{ post.date | date: "%b" }}{% endcapture %}
{% comment %}
{% if last_day and last_day == this_day %}
{% assign same_day = true %}
{% else %}
{% assign last_day = this_day %}
{% assign same_day = false %}
{% endif %}
{% if last_month and last_month == this_month %}
{% assign same_month = true %}
{% else %}
{% assign last_month = this_month %}
{% assign same_month = false %}
{% endif %}
<span class="date day {% if same_day and same_month %}text-white{% endif %}">{{ this_day }}</span>
<span class="date month small {% if same_day and same_month %}text-white{% else %}text-muted{% endif %}">
{{ this_month }}
</span>
{% endcomment %}
<span class="date day">{{ this_day }}</span> <span class="date day">{{ this_day }}</span>
<span class="date month small text-muted">{{ this_month }}</span> <span class="date month small text-muted">{{ this_month }}</span>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a> <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>