Fix text format for config.mjs
This commit is contained in:
56
README.md
56
README.md
@ -144,49 +144,49 @@ Basic configuration file: `./src/config.mjs`
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const CONFIG = {
|
const CONFIG = {
|
||||||
name: 'Example',
|
name: 'Example',
|
||||||
|
|
||||||
origin: 'https://example.com',
|
origin: 'https://example.com',
|
||||||
basePathname: '/', // Change this if you need to deploy to Github Pages, for example
|
basePathname: '/', // Change this if you need to deploy to Github Pages, for example
|
||||||
trailingSlash: false, // Generate permalinks with or without "/" at the end
|
trailingSlash: false, // Generate permalinks with or without "/" at the end
|
||||||
|
|
||||||
title: 'Example - This is the homepage title of Example', // default seo title
|
title: 'Example - This is the homepage title of Example', // default seo title
|
||||||
description: 'This is the homepage description of Example', // default seo description
|
description: 'This is the homepage description of Example', // default seo descriptio
|
||||||
defaultImage: "image.jpg", // default seo image
|
defaultImage: "image.jpg", // default seo image
|
||||||
|
|
||||||
defaultTheme: 'system', // Values: "system" | "light" | "dark" | "light:only" | "dark:only"
|
defaultTheme: 'system', // Values: "system" | "light" | "dark" | "light:only" | "dark:only"
|
||||||
|
|
||||||
googleAnalyticsId: false, // or "G-XXXXXXXXXX",
|
googleAnalyticsId: false, // or "G-XXXXXXXXXX",
|
||||||
googleSiteVerificationId: false, // or some value,
|
googleSiteVerificationId: false, // or some value,
|
||||||
|
|
||||||
blog: {
|
blog: {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
postsPerPage: 4,
|
postsPerPage: 4,
|
||||||
|
|
||||||
list: {
|
list: {
|
||||||
pathname: 'blog', // blog main path, you can change this to "articles" (/articles)
|
pathname: 'blog', // blog main path, you can change this to "articles" (/articles)
|
||||||
noindex: false,
|
noindex: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
post: {
|
post: {
|
||||||
pathname: '', // empty for /some-post, value for /pathname/some-post
|
pathname: '', // empty for /some-post, value for /pathname/some-post
|
||||||
noindex: false,
|
noindex: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
category: {
|
category: {
|
||||||
pathname: 'category', // set empty to change from /category/some-category to /some-category
|
pathname: 'category', // set empty to change from /category/some-category to /some-category
|
||||||
noindex: true,
|
noindex: true,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
tag: {
|
tag: {
|
||||||
pathname: 'tag', // set empty to change from /tag/some-tag to /some-tag
|
pathname: 'tag', // set empty to change from /tag/some-tag to /some-tag
|
||||||
noindex: true,
|
noindex: true,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user