renamed a file, fixed some site.json issues, and updated some configs in .eleventy.js

master
Nexan 2024-01-31 11:03:49 -06:00
parent e6554d782b
commit 553f164532
4 changed files with 14 additions and 7 deletions

View File

@ -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 `<img class="my-4" src="/assets/img/posts/${filename}" alt="${alt}" />`
})
return {
markdownTemplateEngine: 'liquid',
dir: {
input: 'src'
input: 'src',
}
}
}

View File

@ -4,6 +4,5 @@
"title": "Change Me",
"description": "Welcome to my blog",
"github": "https://git.nexxy.co",
"twitter": "",
"linkedin": ""
"twitter": ""
}

View File

@ -5,7 +5,6 @@
<title> {{ title }}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="author" href="humans.txt" />
<link href="/assets/styles/style.css" rel="stylesheet" />
</head>
<body>

View File

@ -1,4 +1,5 @@
---
layout: default.liquid
layout: main
---
hello, world
# hello, world