更新履歴を10件まで表示するように変更
parent
a5f88f54a7
commit
727a09a98f
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue