Giter Club home page Giter Club logo

Comments (5)

ismay avatar ismay commented on June 16, 2024

I also have noticed that the path for the filenames when collections is run is being set using the *.md.njk format.

I have created my own articles plugin that modifies the navigation for my articles based on the file structure and also the path. The issue I am having is that it appears I have to run metalsmith-in-place before metalsmith-collections in order to get the path to be correct so something like articles/first-series/first-page.md.njk rather than articles/first-series/first-page.html.

Hi @jcrawford. That is not a bug but expected behaviour. metalsmith-in-place changes the filenames after transforming. That doesn't mean that you won't be able to use collections or pagination though, just that you'll have to take this transformation into account. See how I'm doing it here for example: https://github.com/ismay/ismaywolff.nl/blob/master/metalsmith.js. I'll close this since it's not a bug or feature request. Hope that helps. For further help I recommend the slack channel, which is meant for support requests. Thanks!

from collections.

jcrawford avatar jcrawford commented on June 16, 2024

I am not sure I see what you are doing differently, I am specifying the pattern in the collections options as well.

from collections.

ismay avatar ismay commented on June 16, 2024

In that case, maybe I’ve misunderstood your question. To prevent miscommunication, if you’re filing a bug report it’s usually better to open a pr with a failing test. And if it’s more a support question, it’s probably easier to continue the conversation on slack.

from collections.

jcrawford avatar jcrawford commented on June 16, 2024

@ismay I just found the slack channel :)

from collections.

ismay avatar ismay commented on June 16, 2024

Cool! 👍

from collections.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.