Configure syntax highlighting
This commit is contained in:
parent
ffa1c41c0e
commit
68a78a333b
6 changed files with 231 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
const pluginRss = require('@11ty/eleventy-plugin-rss')
|
||||
const pluginToc = require('eleventy-plugin-nesting-toc')
|
||||
const pluginSyntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight')
|
||||
|
||||
// extra features for markdown
|
||||
const markdownIt = require('markdown-it')
|
||||
|
|
@ -13,13 +14,15 @@ const header = require('./src/_includes/filters/header')
|
|||
module.exports = function (config) {
|
||||
config.addPlugin(pluginRss)
|
||||
config.addPlugin(pluginToc)
|
||||
config.addPlugin(pluginSyntaxHighlight)
|
||||
|
||||
config.setBrowserSyncConfig({
|
||||
files: './_site/assets/*.css'
|
||||
})
|
||||
config.setBrowserSyncConfig({
|
||||
files: './_site/assets/*.css'
|
||||
})
|
||||
|
||||
config.addPassthroughCopy('src/assets/key.txt')
|
||||
config.addPassthroughCopy('src/assets/ibm-plex/IBM-Plex-Mono/fonts/**/*')
|
||||
config.addPassthroughCopy('src/assets/prism-base16-ateliersulphurpool.light.css')
|
||||
config.addPassthroughCopy('src/posts/**/*.{jpeg,jpg,png,webp}')
|
||||
|
||||
// configure markdown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue