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