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 markdownIt = require('markdown-it')
const markdownItAnchor = require('markdown-it-anchor') const markdownItAnchor = require('markdown-it-anchor')
@ -17,10 +16,19 @@ module.exports = function(eleventyConfig) {
}) })
eleventyConfig.setLibrary('md', md) 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 { return {
markdownTemplateEngine: 'liquid', markdownTemplateEngine: 'liquid',
dir: { dir: {
input: 'src' input: 'src',
} }
} }
} }

View File

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

View File

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

View File

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