Added NewWebsite post
This commit is contained in:
13
.eleventy.js
13
.eleventy.js
@ -1,6 +1,19 @@
|
||||
const blogTools = require("eleventy-plugin-blog-tools");
|
||||
const markdownIt = require("markdown-it");
|
||||
const markdownItAttrs = require("markdown-it-attrs");
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
const mdOptions = {
|
||||
html: true,
|
||||
breaks: true,
|
||||
linkify: true,
|
||||
};
|
||||
const markdownLib = markdownIt(mdOptions)
|
||||
.use(markdownItAttrs)
|
||||
.disable("code");
|
||||
|
||||
eleventyConfig.setLibrary("md", markdownLib);
|
||||
|
||||
eleventyConfig.setUseGitIgnore(false);
|
||||
eleventyConfig.addPassthroughCopy('./src/css');
|
||||
eleventyConfig.addPassthroughCopy('./src/assets/');
|
||||
|
Reference in New Issue
Block a user