parent
9142f5f460
commit
9ccd29294b
7 changed files with 11 additions and 8 deletions
9
content/_data/metadata.js
Normal file
9
content/_data/metadata.js
Normal file
|
@ -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"
|
||||
};
|
|
@ -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:
|
||||
// -----------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue