_layouts/home.html in jekyll-theme-github-like-0.1.1 vs _layouts/home.html in jekyll-theme-github-like-0.1.2
- old
+ new
@@ -30,12 +30,12 @@
<div class="flex-auto"></div>
<div class="flex-self-center ml-3 flex-self-stretch d-none d-lg-flex flex-items-center lh-condensed-ultra">
<div>
- <span class="color-fg-muted">最近更新:</span>
- <strong>2022-02-02 12:12:12</strong>
+ <span class="color-fg-muted">最近发布:</span>
+ <strong class="color-fg-muted">{{ site.posts[0].date | date: "%Y/%m/%d" }}</strong>
</div>
</div>
</div>
<!-- 文章列表 -->
@@ -56,11 +56,11 @@
</div>
</div>
</div>
<div class="js-details-container Details">
- <div role="grid" class="Details-content--hidden-not-important js-navigation-container js-active-navigation-container d-md-block">
+ <div role="grid" class="Details-content--hidden-not-important js-navigation-container js-active-navigation-container d-block">
{%- for post in site.posts -%}
<div role="row" class="Box-row Box-row--focus-gray py-2 d-flex position-relative js-navigation-item ">
<div role="gridcell" class="mr-3 flex-shrink-0" style="width: 16px;">
<svg aria-label="File" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16"
data-view-component="true" class="octicon octicon-file color-fg-muted">
@@ -75,14 +75,18 @@
href="{{ post.url | relative_url }}">{{ post.title }}</a>
</span>
</div>
<div role="gridcell" class="flex-auto min-width-0 d-none d-md-block col-5 mr-3">
- <span class="css-truncate css-truncate-target d-block width-fit markdown-title">
- {%- for tag in post.tags -%}
- <span class="mr-1">{{ tag }}</span>
- {%- endfor -%}
- </span>
+ <span class="css-truncate css-truncate-target d-block width-fit markdown-title">
+ {%- for cate in post.categories -%}
+ <span class="mr-1 Label Label--primary">{{ cate }}</span>
+ {%- endfor -%}
+
+ {%- for tag in post.tags -%}
+ <span class="mr-1 Label">{{ tag }}</span>
+ {%- endfor -%}
+ </span>
</div>
<div role="gridcell" class="color-fg-muted text-right" style="width:100px;">
<span class="no-wrap">{{ post.date | date: '%Y-%m-%d' }}</span>
</div>