Unified file naming style.

This commit is contained in:
Cotes Chung 2020-06-03 22:49:28 +08:00
parent cb37a1909d
commit 3caafbd50d
5 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@
{% if site.data.updates %}
{% include update_list.html %}
{% include update-list.html %}
{% if update_list.size > 0 %}
@ -45,7 +45,7 @@
{% endif %} <!-- site.data.updates -->
{% include trending_tags.html %}
{% include trending-tags.html %}
{% if trending_tags.size > 0 %}
<div id="access-tags">

View file

@ -9,7 +9,7 @@
<div class="col-12 col-xl-11 post-content">
<div id="search-hints">
<h4 class="text-muted mb-4">{{ site.data.label.panel.trending_tags }}</h4>
{% include trending_tags.html %}
{% include trending-tags.html %}
{% for tag in trending_tags %}
{% capture url %}/tags/{{ tag | downcase | url_encode }}/{% endcapture %}
<a class="post-tag" href="{{ url | relative_url }}">{{ tag | replace: '-', ' ' }}</a>

View file

@ -1,5 +1,5 @@
{% comment %}
Get the last 5 post from lastmod list.
Get the last 5 posts from lastmod list.
v2.2
https://github.com/cotes2020/jekyll-theme-chirpy
© 2020 Cotes Chung

View file

@ -52,7 +52,7 @@ const include = [
{% endif %}
{% endfor %}
{% include update_list.html %}
{% include update-list.html %}
{% for item in update_list %}
{% assign url = item | split: "::" | last | prepend: "/posts/" | append: "/" %}
{% assign post_list = post_list | push: url %}
@ -65,7 +65,7 @@ const include = [
{% endfor %}
/* Trending tags */
{% include trending_tags.html %}
{% include trending-tags.html %}
{% for tag in trending_tags %}
{% capture tag_url %}/tags/{{ tag | downcase | url_encode }}/{% endcapture %}
'{{ tag_url | relative_url }}',