0
A
回答
2
因爲你的問題是不完全清楚,我假設你有你想要顯示的帖子頁面上,而不是一堆職位在索引頁面上。在這裏,我認爲您可以在着陸頁上顯示帖子的標題,這樣當用戶點擊特定的鏈接/帖子時,他們可以在帖子頁面中完整地閱讀該帖子。要做到這一點,你可以這樣修改您的index.html:
---
layout: page
footer: false
sidebar: true
---
<div id="blog-archives">
{% for post in site.posts reverse %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include archive_post.html %}
</article>
{% endfor %}
</div>
<aside class="sidebar">
{% if site.blog_index_asides.size %}
{% include_array blog_index_asides %}
{% else %}
{% include_array default_asides %}
{% endif %}
</aside>
相關問題
- 1. 當打開頁面時jQuery隱藏/顯示隱藏內容
- 2. 從所有隱藏的內容開始
- 3. 隱藏MVC頁面的內容
- 4. 在透明頁眉後面隱藏頁面內容
- 5. 隱藏面板在子頁面MasterPage ContentPlaceHolder在子頁面內容頁面
- 6. 當打開頁面時,爲什麼不能隱藏內容?
- 7. 內容DIV隱藏頁腳
- 8. 隱藏母版頁內容
- 9. 頁腳不粘在頁面底部(隱藏內容)
- 10. 在開始而不是點擊後隱藏FX.slide內容
- 11. 隱藏在頁面開始加載大量的JQuery
- 12. 隱藏內容
- 13. 溢出:隱藏隱藏在網頁上的所有內容
- 14. jquery - 我需要在新窗口中打開頁面上的隱藏內容
- 15. 從查看頁面隱藏母版頁中的內容
- 16. Master.cs在頁面內容代碼隱藏後運行
- 17. 當頁面在jquery中向下滾動時隱藏內容
- 18. Drupal在form_alter中重定向/隱藏頁面內容
- 19. 如何在同一頁面隱藏鏈接的內容?
- 20. 在固定div位置下滾動時隱藏頁面內容
- 21. 隱藏在MasterPageTemplateHeader內容編輯器頁面的EdiatbleImageWebpart Kentico 9
- 22. 在jQuery Mobile頁面中顯示和隱藏內容
- 23. 如何在asp.net內容頁面中隱藏查詢字符串?
- 24. 頁腳div隱藏在內容div後面
- 25. 在主頁面中隱藏網頁內容表單上的所有面板
- 26. jQuery的節目內容時,點擊開始隱藏
- 27. CSS展開,隱藏懸停內容
- 28. 當用戶開始滾動頁面時隱藏鏈接
- 29. 隱藏所有RadToolTips頁面OnItemDrag從RadListView開始
- 30. 如何隱藏Eclipse上的Aptana開始頁面?
只是說明說,正確的液體語法倒車時迭代使用for循環指定'reversed'的元素,而不是反向' '(http://shopify.github.io/liquid/tags/iteration/#reversed) – 2017-01-08 13:46:06