renamed a file, fixed some site.json issues, and updated some configs in .eleventy.js
parent
e6554d782b
commit
553f164532
12
.eleventy.js
12
.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 `<img class="my-4" src="/assets/img/posts/${filename}" alt="${alt}" />`
|
||||
})
|
||||
|
||||
return {
|
||||
markdownTemplateEngine: 'liquid',
|
||||
dir: {
|
||||
input: 'src'
|
||||
input: 'src',
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,6 +4,5 @@
|
|||
"title": "Change Me",
|
||||
"description": "Welcome to my blog",
|
||||
"github": "https://git.nexxy.co",
|
||||
"twitter": "",
|
||||
"linkedin": ""
|
||||
"twitter": ""
|
||||
}
|
|
@ -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>
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
layout: default.liquid
|
||||
layout: main
|
||||
---
|
||||
hello, world
|
||||
|
||||
# hello, world
|
||||
|
|
Loading…
Reference in New Issue