Update eleventy to 3.0.0-alpha.4
This commit is contained in:
parent
3909e2fcbe
commit
8f9853f6db
8 changed files with 918 additions and 743 deletions
22
.eleventy.js
22
.eleventy.js
|
|
@ -1,18 +1,18 @@
|
|||
const pluginRss = require('@11ty/eleventy-plugin-rss')
|
||||
const pluginToc = require('eleventy-plugin-nesting-toc')
|
||||
const pluginSyntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight')
|
||||
import pluginRss from '@11ty/eleventy-plugin-rss'
|
||||
import pluginToc from 'eleventy-plugin-nesting-toc'
|
||||
import pluginSyntaxHighlight from '@11ty/eleventy-plugin-syntaxhighlight'
|
||||
|
||||
// extra features for markdown
|
||||
const markdownIt = require('markdown-it')
|
||||
const abbrs = require('markdown-it-abbr')
|
||||
const anchors = require('markdown-it-anchor')
|
||||
const footnotes = require('markdown-it-footnote')
|
||||
const lazyLoading = require('@junwatu/markdown-it-lazy-loading')
|
||||
import markdownIt from 'markdown-it'
|
||||
import abbrs from 'markdown-it-abbr'
|
||||
import anchors from 'markdown-it-anchor'
|
||||
import footnotes from 'markdown-it-footnote'
|
||||
import lazyLoading from '@junwatu/markdown-it-lazy-loading'
|
||||
|
||||
const { DateTime } = require('luxon')
|
||||
const header = require('./src/_includes/filters/header')
|
||||
import { DateTime } from 'luxon'
|
||||
import header from './src/_includes/filters/header.js'
|
||||
|
||||
module.exports = function (config) {
|
||||
export default function (config) {
|
||||
config.addWatchTarget('./src/posts/drafts/*.md')
|
||||
config.setServerOptions({
|
||||
watch: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue