legumeinfo / jekyll-starter-legumeinfo

A Jekyll site that demonstrates how to use the legumeinfo Jekyll theme
Apache License 2.0
1 stars 1 forks source link

Set default layouts #12

Closed alancleary closed 8 months ago

alancleary commented 11 months ago

The theme provides a lot of layouts but none of them are being used by default, other than the "default.html" layout that is automatically used by Jekyll. Update the _config.yml file to assign as many default layouts as possible. For example:

defaults:
  -
    scope:
      path: "blog/" # an empty string here means all files in the project
      type: "posts" # previously `post` in Jekyll 2.2.
    values:
      layout: "blog-item"

See the Jekyll documentation for details on how to implement this.

Edit: Be sure to update the documentation for things like blog post, events, and news items that currently say you have to set the layout frontmatter yourself. This will no longer be necessary after default layouts have been specified for them.

alancleary commented 10 months ago

Unfortunately it looks like you can't set default layouts via the theme's _config.yml file so I'm going to transfer this issue to the starter repo.

alancleary commented 8 months ago

Done in commit 294f2d06ef8e49a742288746e0a6cbc77c9de4cd.