Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar Nav menus do not show in pages generated by jekyll-archives #1

Open
tillmanj opened this issue Dec 19, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working upstream problem results from upstream package integration

Comments

@tillmanj
Copy link
Owner

The Minimal Mistake Sidebar Navigation does not show when included into pages built by the jekyll-archives plugin.

For an example, look at the file: archive-month.html

Tried So Far

  • author_profile: true in the template frontmatter does trigger {% include sidebar.html %} as expected. See sidebar.html for the relevant code.
  • The default inclusion of the sidebar nav in the default layout section of _config.yml does not trigger inclusion:
defaults:
  -
    scope:
      path: "" # an empty string here means all files in the project
    values:
      layout: "default"
      author: "Jon Tillman"
      author_url: "/about/jon/"
      toc: true
      toc_sticky: true
      sidebar:
        nav: [ recipes, culture, visit ]
  • Setting the sidebar explicitly in the template frontmatter does no trigger inclusion:
sidebar:
  nav: "recipes"

Other Things I Have Checked

  • my sidebar.html is identical to the minimal mistakes file
  • The Archive Configuration page of the Minimal Mistakes documentation site points towards a potential for further investigation: "To apply Front Matter defaults to pages generated by the jekyll-archives plugin, you can specify a scope of an empty path and a type of either tag or category."
defaults:
  - scope:
      path: ""
      type: tag
    values:
      author_profile: true
  - scope:
      path: ""
      type: category
    values:
      comments: false
@tillmanj tillmanj added the bug Something isn't working label Dec 19, 2024
@tillmanj tillmanj self-assigned this Dec 19, 2024
@tillmanj tillmanj added the upstream problem results from upstream package integration label Dec 19, 2024
@tillmanj
Copy link
Owner Author

Look at https://george-gca.github.io/jekyll-archives-v2/. It might have fixed the issue.

@tillmanj
Copy link
Owner Author

If not, seriously consider writing a different Liquid-only archive system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream problem results from upstream package integration
Projects
None yet
Development

No branches or pull requests

1 participant