← すべての記事

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

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

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

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

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

_includesディレクトリを保存#

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

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

{% 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 %} -->

結果#

いい感じ。