This theme supports multiple custom collections beyond posts: notes and journals.
collections:
pages:
output: true
permalink: /:title
notes:
output: true
permalink: /notes/:title
journals:
output: true
permalink: /journals/:title
- Notes use the layout
postby default and live in_notes/. - Journals use the layout
journal-entryby default and live in_journals/.
Defaults are set under defaults: so you don’t need to specify layout per-file.
- Add an entry under
collections:in_config.yml:collections: bookmarks: output: true permalink: /bookmarks/:title
- Create a directory at the repo root:
_bookmarks/. - Create a layout (optional) at
_layouts/bookmark.html. - Add content markdown files in
_bookmarks/with front matter:--- layout: bookmark title: A Great Link tags: [reading] --- Body content here.
- Tags and categories pages are handled via templates in
_pages/. - Archives are generated in
_pages/archive.mdand use list templates to include all collections.
- Add links in
_includes/links.htmlor_includes/sidebar.html. - To list a collection anywhere:
{% assign items = site.bookmarks %} {% for item in items %} <a href="{{ item.url | relative_url }}">{{ item.title }}</a> {% endfor %}
search.json already indexes posts, notes, and journals.
To include a new collection, add a new loop in search.json emitting title, url, and content.