Refactor site generation into a modular content pipeline
Deploy website / deploy (push) Successful in 24s
Deploy website / deploy (push) Successful in 24s
This commit is contained in:
1 parent
0f69028d4a
commit
146d516f24
20 files changed
+826
-427
No files matched your search
@@ -0,0 +1,29 @@
|
||||
export const siteName = 'PaulW.XYZ'
|
||||
export const siteUrl = 'https://paulw.xyz'
|
||||
export const generatedRoot = '.generated'
|
||||
|
||||
export const contentDirectories = ['notes', 'posts']
|
||||
export const standalonePages = [
|
||||
{ source: 'README.md', path: 'about', title: 'About' },
|
||||
{ source: 'THIRD_PARTY_LICENSES.md', path: 'licenses', title: 'Licenses' },
|
||||
]
|
||||
|
||||
export const navLabels = {
|
||||
notes: 'Notes',
|
||||
posts: 'Posts',
|
||||
about: 'About',
|
||||
licenses: 'Licenses',
|
||||
}
|
||||
|
||||
export const contentSources = [
|
||||
...contentDirectories,
|
||||
...standalonePages.map(({ source }) => source),
|
||||
'external.json',
|
||||
'generator.js',
|
||||
'content.js',
|
||||
'feed.js',
|
||||
'html.js',
|
||||
'markdown.js',
|
||||
'output.js',
|
||||
'site.config.js',
|
||||
]
|
||||
Reference in new issue
Block a user