diff --git a/content/_data/metadata.js b/content/_data/metadata.js new file mode 100644 index 0000000..01f4d7c --- /dev/null +++ b/content/_data/metadata.js @@ -0,0 +1,9 @@ +export const title = "nycki.net"; +export const url = "https://nycki.net"; +export const language = "en"; +export const description = "nycki.net"; +export const author = { + name: "nycki", + email: "nupanick@gmail.com", + url: "https://nycki.net" +}; diff --git a/_includes/layouts/base.njk b/content/_includes/layouts/base.njk similarity index 100% rename from _includes/layouts/base.njk rename to content/_includes/layouts/base.njk diff --git a/_includes/layouts/home.njk b/content/_includes/layouts/home.njk similarity index 100% rename from _includes/layouts/home.njk rename to content/_includes/layouts/home.njk diff --git a/_includes/layouts/post.njk b/content/_includes/layouts/post.njk similarity index 100% rename from _includes/layouts/post.njk rename to content/_includes/layouts/post.njk diff --git a/_includes/postslist.njk b/content/_includes/postslist.njk similarity index 100% rename from _includes/postslist.njk rename to content/_includes/postslist.njk diff --git a/_includes/updates.njk b/content/_includes/updates.njk similarity index 100% rename from _includes/updates.njk rename to content/_includes/updates.njk diff --git a/eleventy.config.js b/eleventy.config.js index cc388c8..e4dbc7e 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -6,6 +6,8 @@ import { DateTime } from "luxon"; /** @param {import('@11ty/eleventy').UserConfig} eleventyConfig */ export default function(eleventyConfig) { + eleventyConfig.setInputDirectory('content'); + if (process.env.NODE_ENV === 'localhost') { console.log('metadata override'); eleventyConfig.addGlobalData('metadata.url', 'http://localhost:8080'); @@ -152,14 +154,6 @@ export default function(eleventyConfig) { // Pre-process *.html files with: (default: `liquid`) htmlTemplateEngine: "njk", - // These are all optional: - dir: { - input: "content", // default: "." - includes: "../_includes", // default: "_includes" - data: "../_data", // default: "_data" - output: "_site" - }, - // ----------------------------------------------------------------- // Optional items: // -----------------------------------------------------------------