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

Possible bug where the library fails to pick up posts in a non-default location? #21

Open
alexwlchan opened this issue Apr 10, 2018 · 1 comment

Comments

@alexwlchan
Copy link

I’m trying to use jekyll-git_metadata 0.2.0 with my Jekyll site. One unusual feature of my site is that the Jekyll root isn’t the same as the Git root – instead, I have the following line in my _config.yml which points to all my post/page data in the src directory:

source: src

Here's a small snippet from my cache file:

  "pages_data": {
    "a-plumbers-guide-to-git/1-the-git-object-store.md": null,
    "a-plumbers-guide-to-git/2-blobs-and-trees.md": null,
    "a-plumbers-guide-to-git/3-context-from-commits.md": null,
    "a-plumbers-guide-to-git/4-refs-and-branches.md": null,
    "404.md": null,
    "410.md": null,

It looks like the library is failing to consider the source prefix – it’s looking for a file 404.md, but Git knows the file under the name src/404.md – so it doesn’t find any page metadata.

This isn’t at all urgent – I can work around this – but I thought you’d like to know!

@ivantsepp
Copy link
Owner

Ah thanks for the bug report! I will look into it and welcome anyone to do so too!

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

2 participants