-
Notifications
You must be signed in to change notification settings - Fork 6
/
antwar.config.js
74 lines (69 loc) · 1.46 KB
/
antwar.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
'use strict';
/*
var rssPlugin = require('antwar-rss-plugin');
var prevnextPlugin = require('antwar-prevnext-plugin');
var highlightPlugin = require('antwar-highlight-plugin');
*/
module.exports = {
assets: [
{
from: './CNAME',
to: './',
},
{
from: 'images',
to: 'images',
},
],
output: 'build',
name: 'Koodilehto',
author: 'Koodilehto',
deploy: {
branch: 'gh-pages',
},
plugins: [
/*rssPlugin(),
prevnextPlugin(),
highlightPlugin({
style: function() {
require('highlight.js/styles/github.css');
},
languages: ['javascript'],
})*/
],
paths: {
'/': {
path: function() {
return require.context('./pages');
}
},
/*blog: {
path: function() {
return require.context('./posts', true, /^\.\/.*\.md$/);
},
draft: function() {
return require.context('./drafts', true, /^\.\/.*\.md$/);
},
processItem: {
url: function(o) {
if(o.file.url) {
return o.file.url;
}
var page = o.fileName.split('.')[0].split('-').slice(1).join('-');
return o.sectionName + '/' + page;
}
},
layout: 'blog',
title: 'Blog posts',
},*/
},
theme: {
name: 'antwar-default-theme',
navigation: [
//{title: 'Home', url: '/'},
//{title: 'Blog', url: '/blog'}
],
analyticsId: 'UA-XXX',
customStyles: 'specific.scss'
}
};