Updated Dependances.
This commit is contained in:
parent
74e54a79b4
commit
05d39cc8b5
3 changed files with 2101 additions and 3275 deletions
|
|
@ -1,11 +1,10 @@
|
|||
/* This is the actual metalsmith configuration script. */
|
||||
const assets = require('metalsmith-assets')
|
||||
const cleanCSS = require('metalsmith-clean-css')
|
||||
const config = require('./config.js')
|
||||
const groff = require('metalsmith-groff')
|
||||
const layouts = require('@metalsmith/layouts')
|
||||
const Metalsmith = require('metalsmith')
|
||||
const markdown = require('metalsmith-markdownit')
|
||||
const markdown = require('@metalsmith/markdown')
|
||||
const moment = require('moment')
|
||||
const rename = require('metalsmith-rename')
|
||||
const permalinks = require('@metalsmith/permalinks')
|
||||
|
|
@ -26,7 +25,6 @@ module.exports = new Metalsmith(config.paths.projectRoot)
|
|||
})
|
||||
.source(config.paths.webSource)
|
||||
.destination(config.paths.webDestination)
|
||||
.use(cleanCSS({}))
|
||||
.use(assets({
|
||||
source: './assets/' + (process.env.NODE_ENV || 'dev'),
|
||||
destination: config.paths.webDestination
|
||||
|
|
@ -36,18 +34,14 @@ module.exports = new Metalsmith(config.paths.projectRoot)
|
|||
source: true
|
||||
}))
|
||||
.use(markdown({
|
||||
html: true,
|
||||
typographer: true,
|
||||
quotes: ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'],
|
||||
plugin: {
|
||||
pattern: '**/*.md',
|
||||
// fields: ['contents', 'excerpt']
|
||||
extension: 'njk'
|
||||
}
|
||||
gfm: false,
|
||||
headerIds: false,
|
||||
smartypants: true,
|
||||
xhtml: true
|
||||
}))
|
||||
.use(layouts({
|
||||
default: 'default.njk',
|
||||
pattern: '**/*.njk',
|
||||
pattern: '**/*.html',
|
||||
engineOptions: {
|
||||
filters: {
|
||||
setAttribute: (dictionary, key, value) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue