Skip to content

Instantly share code, notes, and snippets.

@ringmaster
Last active July 7, 2019 16:26
Show Gist options
  • Save ringmaster/00cf8cad0562c5ea396756d6cf389d7a to your computer and use it in GitHub Desktop.
Save ringmaster/00cf8cad0562c5ea396756d6cf389d7a to your computer and use it in GitHub Desktop.
Eldir config example
title = "Eldir Config"
# all paths are relative to this file and represent directories in which files are found
[repos.posts]
path = "posts"
[repos.pages]
path = "pages"
[routes]
[routes.index]
# route is the URL for the page
# parameters on the route filter the posts from the specified repo
route = "/"
repos = ["posts"]
template = "index"
[routes.year]
route = "/:year"
repos = ["posts"]
template = "multi"
[routes.month]
route = "/:year/:month"
repos = ["posts"]
template = "multi"
[routes.single]
route = "/:year/:month/:slug"
repos = ["posts"]
template = "single"
[routes.pages]
route = "/:slug"
repos = ["pages"]
template = "page"
[templates]
path = "templates/current"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment