Comments (13)
@nhoizey has collections support been implemented yet? I'd be willing to implement it.
from jekyll-postfiles.
I'll get on it soon... may take a few weeks to get started (nearly christmas & all).
from jekyll-postfiles.
I'm not sure whether it'll work with #47 then. that patch specifically goes through files in collections.
from jekyll-postfiles.
Indeed. Work is already planned for collections, but having any page support would be great.
from jekyll-postfiles.
@mohkale I didn't make any progress yet unfortunately, so that's great that you're willing to implement it, thanks! 👍
from jekyll-postfiles.
No problem, you're the lead on this! 🙂
from jekyll-postfiles.
Finally got round to implementing collections support. Now all that's left should be normal pages... but I'm not really sure how to implement it or even whether there's a need to. Could you give me a use case of where unique grouping of assets for regular pages make sense?
from jekyll-postfiles.
@mohkale I've seen people, including me, group pages in a _pages
folder and include it in their config, to get a cleaner root. But it looks like a special collection, looks like that kind of structure could be done now with #47 ?
_config.yml
_pages/
about/
index.md
team.jpg
404/
index.md
error.jpg
_posts/
_collections/
Gemfile
...
from jekyll-postfiles.
@DirtyF so _pages is a collection? I'm not sure whether it'll work with #47 because a postfile has to be at least one directory below the collection directory Sorry. the indentation with about/ and 404/ was off and that confused me. Yeah, that seems like a good solution.
from jekyll-postfiles.
@DirtyF though I've found a bug with #47 in that regard. It seems to me like it's outputting both the converted .html
format files and the original unconverted markdown files. I'm not sure why. I'll look into it.
oh, I see, it's recognising the .md files as jekyll-postfiles
... I'm curious why this isn't an issue with posts it isn't an issue with posts because posts match the file date format... I can see how to fix this.
Update: Okay, that should've fixed it.
from jekyll-postfiles.
@DirtyF I've got one issue with _pages. Is it already defined as a collection? I can't seem to add it to my collections hash in _config.yml and I also can't change the permalink for members of it.
Adding
defaults:
- scope:
type: pages
values:
permalink: /:title:output_ext
gets me: jekyll 3.8.6 | Error: Invalid argument @ rb_sysopen - mohkale.io/bin/:title.html
. I truncated the path for simplicities purposes, but bin
is my build directory for jekyll.
from jekyll-postfiles.
It's not a collection, just an included folder.
from jekyll-postfiles.
Just ran into a use case where this'd be convenient so it's probably worth considering how to implement it. We could just ask users to manually create a collection, _pages
in this case and then use that with #47 ... but I'm not a big a fan of the whole _collection naming scheme & that'd force paths for files in the root of your site into at least one subdirectory below the root of your source directory, so I'd appreciate an alternative.
We could add a config option where users can specify paths and each matching path is considered the root for a postfiles directory. I.E.
site:
- about-me/
- banner.png
- index.md
- faq/
- styles/
- main.css
- index.md
- _config.yml
_config.yml:
postfiles:
include:
- {about-me,faq}/
neither approach seems very intuitive.
from jekyll-postfiles.
Related Issues (20)
- Hard link to image does not work on index page HOT 3
- Error when updating from 2.1.1 to 3.0.0 HOT 1
- Doesn't work with jekyll 3.8.3 HOT 2
- Add test suite HOT 5
- Support collections__dir
- Does not work with GitHub pages HOT 9
- conflict with jekyll-relative-links HOT 3
- generating failed with a lowercased pdf extension (.pdf) HOT 3
- jekyll-postfiles generated asset link will be broken after restart jekyll server HOT 4
- Does not work with Jekyll 4.0.0
- add option to automatically create subdirectories for postfiles HOT 3
- extract date field from folder name, instead of subfile HOT 2
- postfiles aren't matched against converters? HOT 5
- support for img: tag in post header HOT 1
- BUG / UPDATE Works on Github pages with GithubActions
- [Share] Add priority:low to PostFiles class so it works with jekyll-placeholders
- Does not work with jekyll 3.9.0 HOT 1
- List files in the same post directory? HOT 3
- you forgot to activate the plugin in the config after installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-postfiles.