From 553f1645326152944df95245cfe1a54759ae5f28 Mon Sep 17 00:00:00 2001 From: Nexan Date: Wed, 31 Jan 2024 11:03:49 -0600 Subject: [PATCH] renamed a file, fixed some site.json issues, and updated some configs in .eleventy.js --- .eleventy.js | 12 ++++++++++-- src/_data/site.json | 3 +-- src/_includes/{default.liquid => main.liquid} | 1 - src/index.md | 5 +++-- 4 files changed, 14 insertions(+), 7 deletions(-) rename src/_includes/{default.liquid => main.liquid} (87%) diff --git a/.eleventy.js b/.eleventy.js index f8b41f0..8db19d3 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,4 +1,3 @@ -const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight') const markdownIt = require('markdown-it') const markdownItAnchor = require('markdown-it-anchor') @@ -16,11 +15,20 @@ module.exports = function(eleventyConfig) { }) }) eleventyConfig.setLibrary('md', md) + + eleventyConfig.setLiquidOptions({ + dynamicPartials: false, + strictFilters: false +}) + // asset_img shortcode + eleventyConfig.addLiquidShortcode('asset_img', (filename, alt) => { + return `${alt}` + }) return { markdownTemplateEngine: 'liquid', dir: { - input: 'src' + input: 'src', } } } \ No newline at end of file diff --git a/src/_data/site.json b/src/_data/site.json index 4047e14..e2bc351 100644 --- a/src/_data/site.json +++ b/src/_data/site.json @@ -4,6 +4,5 @@ "title": "Change Me", "description": "Welcome to my blog", "github": "https://git.nexxy.co", - "twitter": "", - "linkedin": "" + "twitter": "" } \ No newline at end of file diff --git a/src/_includes/default.liquid b/src/_includes/main.liquid similarity index 87% rename from src/_includes/default.liquid rename to src/_includes/main.liquid index 1a7aac1..6d78971 100644 --- a/src/_includes/default.liquid +++ b/src/_includes/main.liquid @@ -5,7 +5,6 @@ {{ title }} - diff --git a/src/index.md b/src/index.md index e1754c7..f622b90 100644 --- a/src/index.md +++ b/src/index.md @@ -1,4 +1,5 @@ --- -layout: default.liquid +layout: main --- -hello, world \ No newline at end of file + +# hello, world