Skip to content
This repository has been archived by the owner on Apr 28, 2019. It is now read-only.

Convention between filename and position #1

Open
jloosfelt opened this issue Jan 30, 2013 · 1 comment
Open

Convention between filename and position #1

jloosfelt opened this issue Jan 30, 2013 · 1 comment

Comments

@jloosfelt
Copy link
Contributor

The page filename should make it easier to define the page position.

The syntax would be "01_mypage.liquid" (or "10001_mypage.liquid", any number of digits is ok).

This way, filenames are sorted in the same order as their position.

The page slug will be in these 2 examples "mypage", and the "position" in the page header will be ignored.

The developer still can name its page "mypage.liquid", then the position is set in the page header.

@Papipo
Copy link
Member

Papipo commented Jun 6, 2013

I am not sure, but I think that the problem with this approach is that filesystems will list filenames with "10" before "2". Of course you can keep renaming them, but that seems cumbersome and if you have your local site under version control, you need to re-add files all the time. So we can stick with a position field in the YAML. @did?

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

No branches or pull requests

2 participants