bundle update
gem update
gem update --system
-
Create a new folder starting with an underscore (and with a name that is not reserved for Jekyll)
-
Add a new entry in
_config.yml
undercollections
using the same name without the leading underscore (and without any content).collections: new_section:
-
Create a new
new_section.html
file in thepaths
folder. Remember to change the name in thepermalink
and the for-loop atsite.new_section
.--- layout: tips title: The New Section permalink: /new-section/ --- <h2>The New Section</h2> <ul> {% for tip in site.new_section %} <li> <p>{{ tip.content | markdownify }}</p> <hr /> <hr /> </li> {% endfor %} </ul>
-
Add the link to
index.md
:<a href="/new-section">New Section</a> <br />
Simply give it a property of
include_in_header: true
see https://jekyllrb.com/docs/themes/#overriding-theme-defaults