Post

テーマの最近の更新を消す

右にある最近の更新いる、、、?

となったので消します。 リポジトリ内には該当の箇所がなさそうなので、調べたら以下のPRが見つかったのでここを消します。

perf: include the latest posts in the “Recently Updated” list #1456

_includesディレクトリを保存

テーマのリポジトリから _includes ディレクトリを取得して配置します。

_includes/update-list.html を編集する

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- {% if update_list.size > 0 %}
-   <section id="access-lastmod">
-     <h2 class="panel-heading">{{- site.data.locales[include.lang].panel.lastmod -}}</h2>
-     <ul class="content list-unstyled ps-0 pb-1 ms-1 mt-2">
-       {% for item in update_list %}
-         {% assign index = item | split: '::' | last | plus: 0 %}
-         {% assign post = site.posts[index] %}
-         {% assign url = post.url | relative_url %}
-         <li class="text-truncate lh-lg">
-           <a href="{{ url }}">{{ post.title }}</a>
-         </li>
-       {% endfor %}
-     </ul>
-   </section>
-   <!-- #access-lastmod -->
- {% endif %}
+ <!-- {% if update_list.size > 0 %} -->
+ <!--   <section id="access-lastmod"> -->
+ <!--     <h2 class="panel-heading">{{- site.data.locales[include.lang].panel.lastmod -}}</h2> -->
+ <!--     <ul class="content list-unstyled ps-0 pb-1 ms-1 mt-2"> -->
+ <!--       {% for item in update_list %} -->
+ <!--         {% assign index = item | split: '::' | last | plus: 0 %} -->
+ <!--         {% assign post = site.posts[index] %} -->
+ <!--         {% assign url = post.url | relative_url %} -->
+ <!--         <li class="text-truncate lh-lg"> -->
+ <!--           <a href="{{ url }}">{{ post.title }}</a> -->
+ <!--         </li> -->
+ <!--       {% endfor %} -->
+ <!--     </ul> -->
+ <!--   </section> -->
+ <!--   <\!-- #access-lastmod -\-> -->
+ <!-- {% endif %} -->

結果

いい感じ。

This post is licensed under CC BY 4.0 by the author.