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

Sorting 100+ files in one directory creates wrong sequencing #99

Open
taylorren opened this issue Dec 17, 2016 · 0 comments
Open

Sorting 100+ files in one directory creates wrong sequencing #99

taylorren opened this issue Dec 17, 2016 · 0 comments
Assignees

Comments

@taylorren
Copy link

In config.yml file, I have modified as below:

collections:
  posts:
    output: true
    permalink: "/:path/:basename.html"
    sort_by: 'slug'
    sort_type: 'ascending'

Under posts/ directory, I have created a sub-directory called wesley and it contains 100+ (131 to be exact) files: 0.toc.md, 001.md, 002.md, ..., 131.md. For each of these files, I created the header like this:

layout: "post"
title: "钻石花"
slug: "wesley-001"
book: 卫斯理全集

The above 001 will be corresponding to the deemed sequence of the output. In other words, the correct sequencing should be 0.toc, 001, 002, ...131.

However, when the site is built, and I view the post list page, the first file in the sequence becomes 122.html. After reaching 131.html, it will display 0.toc.html and 001 onwards till 121.

I have other sub-directories under posts with similar slug naming convention but don't have this behavior.

Don't know what is the problem for this. Please help.

@yosymfony yosymfony self-assigned this Dec 19, 2016
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