Skip to content

Changing templates output directory #1801

Answered by pdehaan
avidseeker asked this question in Q&A
Discussion options

You must be logged in to vote

@avidseeker Try creating a /src/posts/posts.json file with the following:

{
  "permalink": "/{{ page.fileSlug }}/"
}

This will set the permalink key in each template of your /src/posts/ folder to the template's fileSlug and move the generated files into the root directory.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by avidseeker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants