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

how to get a automatically generated index page #115

Closed
nuomi opened this issue Dec 5, 2012 · 2 comments
Closed

how to get a automatically generated index page #115

nuomi opened this issue Dec 5, 2012 · 2 comments

Comments

@nuomi
Copy link

nuomi commented Dec 5, 2012

hi there,

I write pages much more than posts, the directory hierarchy looks like:

projects
|-- projectA
|   `-- index.md
|   |-- A-1
|   |   `-- index.md
|   |   `-- a.md
|   |   `-- b.md
|   |   `-- c.md
|   |-- A-2
|   |   `-- index.md
|   |   `-- a.md
|   |   `-- b.md
|   |   `-- c.md
|-- projectB
|   `-- index.md

so how can i automatically fill all the index.md with a list of its sibling files?

should I write a helper for this? or what is the best practice?

Thank you

@Lax
Copy link
Contributor

Lax commented Aug 31, 2013

Why not write post, and use 'categories' ?
or
update {BAST_PATH}/pages.html

@marshallshen
Copy link
Collaborator

@nuomi, @Lax

JB ships with configuration of customized path.
You can specify where to find each element of blog.

In _config.yml, you can specify customized routes:

  BASE_PATH : false

  # By default, the asset_path is automatically defined relative to BASE_PATH plus the enabled theme.
  # ex: [BASE_PATH]/assets/themes/[THEME-NAME]
  #
  # Override this by defining an absolute path to assets here.
  # ex: 
  #   http://s3.amazonaws.com/yoursite/themes/watermelon
  #   /assets
  #
  ASSET_PATH : false

  archive_path: /archive.html
  categories_path : /categories.html
  tags_path : /tags.html
  atom_path : /atom.xml
  rss_path : /rss.xml

Please let me know if you have any more questions! (Close the issue for now)

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

No branches or pull requests

3 participants