-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtriven.config.js
29 lines (27 loc) · 1 KB
/
triven.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
const ptBR = require('./src/scripts/base/constants/triven-pt.json');
const dateService = require('./src/scripts/base/services/date/date');
const trivenService = require('./src/scripts/base/services/triven/triven');
const config = {
title: 'Rafael Camargo',
url: 'https://rafaelcamargo.com/blog',
sourceDirectory: './src/scripts/blog/posts',
outputDirectory: './dist/blog',
templates: {
article: './src/scripts/blog/templates/article.html',
homepage: './src/scripts/blog/templates/homepage.html',
vars: {
credits: trivenService.buildTrivenCredits(),
baseMetaTags: trivenService.buildBaseMetaTags(),
descriptionMetaTag: lang => trivenService.buildDescriptionMetaTag(lang),
statorama: trivenService.buildStatoramaScriptTags(),
newsletterForm: lang => trivenService.buildNewsletterForm(lang)
}
},
translations: {
'pt-BR': ptBR
},
formatters: {
date: (isoDateString, lang) => dateService.formatDescriptively(isoDateString, lang)
}
}
module.exports = config;