1
我試圖改變帖子在我的主頁上顯示的方式,但不管我做什麼,更改似乎都不會反映出來。下面是我遵循的步驟:Jekyll方法覆蓋:posts_collate
_config.yml
JB :
version : 0.2.13
posts_collate :
provider : "custom"
然後,我創建的文件_includes /自定義/ posts_collate完全相同的內容_includes/JB/posts_collate但有一些調整。
我原來posts_collate開始了這樣的:
{% if site.JB.posts_collate.provider == "custom" %}
{% include custom/posts_collate %}
{% else %}
{% for post in posts_collate %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
上午我編輯正確的文件?什麼可能導致我的更改沒有反映在自定義文件夾中?
是否posts_collate文件也許有擴展名? –