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

View File

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

View File

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

View File

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