-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgatsby-config.js
27 lines (27 loc) · 1.11 KB
/
gatsby-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
module.exports = {
pathPrefix: `gatsby-starter-orga`,
siteMetadata: {
title: `Gatsby With Orga`,
description: `This barebones starter ships with org-mode support.`,
author: `Xiaoxing Hu <xiaoxing@huxx.org>`,
},
plugins: [
{
resolve: `gatsby-theme-orga`,
options: {
// basePath: `/blog`, // if you want your content to be on a prefix, default is `/`
// contentPath: `blog`, // source of your org files, default to `content`
// filter: { // filter of your posts, key should match metadata propperty names, default is {}
// category: `posts`,
// },
pagination: 5, // default to 10
// slug: ['blog', '$export_file_name'], // how to generate slug for posts, default ['$category', '$export_file_name']
// buildIndexPage: true, // default true
// buildCategoryIndexPage: true, // default true
metadata: ['title', 'category', 'date', 'tags'], // pick the metadata you need in your custom `post` and `posts` components
// sortBy: [`date`], // sort posts
// order: `DESC`, // order for sorting
},
},
],
}