fix metadata
Some checks failed
/ build (push) Failing after 5m10s

This commit is contained in:
Nycki 2024-12-27 13:42:20 -08:00
parent 9142f5f460
commit 9ccd29294b
7 changed files with 11 additions and 8 deletions

View 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"
};

View file

@ -6,6 +6,8 @@ import { DateTime } from "luxon";
/** @param {import('@11ty/eleventy').UserConfig} eleventyConfig */ /** @param {import('@11ty/eleventy').UserConfig} eleventyConfig */
export default function(eleventyConfig) { export default function(eleventyConfig) {
eleventyConfig.setInputDirectory('content');
if (process.env.NODE_ENV === 'localhost') { if (process.env.NODE_ENV === 'localhost') {
console.log('metadata override'); console.log('metadata override');
eleventyConfig.addGlobalData('metadata.url', 'http://localhost:8080'); eleventyConfig.addGlobalData('metadata.url', 'http://localhost:8080');
@ -152,14 +154,6 @@ export default function(eleventyConfig) {
// Pre-process *.html files with: (default: `liquid`) // Pre-process *.html files with: (default: `liquid`)
htmlTemplateEngine: "njk", htmlTemplateEngine: "njk",
// These are all optional:
dir: {
input: "content", // default: "."
includes: "../_includes", // default: "_includes"
data: "../_data", // default: "_data"
output: "_site"
},
// ----------------------------------------------------------------- // -----------------------------------------------------------------
// Optional items: // Optional items:
// ----------------------------------------------------------------- // -----------------------------------------------------------------