Change default config to use pathPrefix: "/" and then use --pathprefix="/eleventy-base-blog/ for GitHub deploy command. Requires Eleventy v0.2.11

This commit is contained in:
Zach Leatherman
2018-01-25 21:03:57 -06:00
parent c81bebd872
commit 6dcc240219
6 changed files with 17 additions and 7 deletions

View File

@@ -44,8 +44,11 @@ module.exports = function(eleventyConfig) {
"css"
],
// if your site lives in a subdirectory, change this
pathPrefix: "/eleventy-base-blog/",
// If your site lives in a different subdirectory, change this.
// Leading or trailing slashes are all normalized away, so dont worry about it.
// If you dont have a subdirectory, use "" or "/" (they do the same thing)
// This is only used for URLs (it does not affect your file structure)
pathPrefix: "/",
markdownTemplateEngine: "liquid",
htmlTemplateEngine: "njk",