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

Breadcrumbs is enable, but the link is wrong #382

Closed
3 tasks done
puhemo opened this issue Jun 28, 2016 · 4 comments
Closed
3 tasks done

Breadcrumbs is enable, but the link is wrong #382

puhemo opened this issue Jun 28, 2016 · 4 comments

Comments

@puhemo
Copy link

puhemo commented Jun 28, 2016

  • This is a question about using the theme.
  • I have updated all gems with bundle update.
  • I have tested locally with bundle exec jekyll build.

Environment informations

  • Minimal Mistakes version: 3.2.12
  • github-pages or jekyll gem version: jekyll archives
  • Operating system: windows 10 and mac

Expected behavior

I click jekyll, it should go to http://127.0.0.1:4000/categories/jekyll/, but not.

Steps to reproduce the behavior

1

click jekyll

@mmistakes
Copy link
Owner

Verify you have the archive settings properly configured in _config.yml. There are settings for the path that may not be filled out. If you're hosting on GitHub then you will have to use the Liquid method, so be sure to fill all of that out.

Also the category archive pages may not exist even if you get the path sorted out. If you're using the Liquid method you need to manually create those pages. If you're self hosting then you can use the Jekyll Archives plugin to do that for you automatically.

@mmistakes
Copy link
Owner

I'm going to assume you got this working. If that's not the case feel free to re-open the issue.

cjmadsen pushed a commit to cjmadsen/cjmadsen.github.io that referenced this issue Dec 7, 2016
@jleberle
Copy link

jleberle commented Jan 20, 2017

I'll bump this as I seem to have the same issue. My _config.yml settings are:

category_archive:
  type: jekyll-archives
  path: /categories/
tag_archive:
  type: jekyll-archives
  path: /tags/
jekyll-archives:
   enabled:
     - categories
     - tags
   layouts:
     category: archive-taxonomy
     tag: archive-taxonomy
   permalinks:
     category: '/categories/:name/'
     tag: '/tags/:name/'

But the Breadcrumbs category link goes to basepath/category rather than basepath/categories/category

@mmistakes
Copy link
Owner

@jleberle - For starters your config is off. Check the paths you're using. I think you flipped the paths for category_archive and tag_archive. /categories/ should be with category_archive not the other way around.

Also is this your repo that's having the problem? https://github.com/jleberle/jaredeberle.org

If so I just cloned it locally and did a build. I think maybe the confusion is over breadcrumbs and "category" links near the bottom of a post.

For example on this post /blog/quotes/speaking-at-americans/

Breadcrumbs all seem to work for me as "Quotes" goes to /blog/quotes

breadcrumbs

The category link does not and is going to /blog/categories/quotes which doesn't exist.

image

This is because you're not using /categories/ in your permalinks as part of Jekyll Archives. You can do it with or without, but they need to match. If you output category pages to /categories/:name then the breadcrumb path needs to match that and vice versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants