更新履歴を10件まで表示するように変更

gh-pages
Rui 2018-03-01 00:37:01 +09:00
parent a5f88f54a7
commit 727a09a98f
1 changed files with 3 additions and 6 deletions

View File

@ -7,14 +7,11 @@ Markdownの作成
{% endcomment %} {% endcomment %}
{% capture list %} {% capture list %}
{% comment %} {% comment %}
全てのページのリストを更新日時でソート 全てのページのリストを更新日時でソートし逆順にする
{% endcomment %} {% endcomment %}
{% assign sorted_pages = (site.pages | sort: "date") %} {% assign sorted_pages = (site.pages | sort: "date" | reverse) %}
{% comment %} {% for page in sorted_pages limit: 10 %}
逆順(新しいものから)でFor実行
{% endcomment %}
{% for page in sorted_pages reversed %}
{% comment %} {% comment %}
更新日時未記入の場合スキップ 更新日時未記入の場合スキップ
{% endcomment %} {% endcomment %}