Try generating tv routes with eleventy

This commit is contained in:
Sam Carlton 2021-01-18 18:55:31 -06:00
parent efeb39a07a
commit ebdb7b681e
4 changed files with 2880 additions and 2 deletions

11
.eleventy.js Normal file
View file

@ -0,0 +1,11 @@
module.exports = {
dir: {
input: 'pages',
output: 'dist',
jsDataFileSuffix: '.json',
// Relative to input directory.
data: '../static',
layouts: '../layouts'
}
}

View file

@ -210,7 +210,7 @@ export default {
...homebrewRoutes,
// Non-app routes
...videoRoutes,
// ...videoRoutes,
...categoryRoutes,
...benchmarkRoutes
])

View file

@ -8,7 +8,9 @@
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "rm -f ./static/app-list.json && npm run clone-readme && nuxt generate",
"generate": "rm -f ./static/app-list.json && npm run clone-readme && npm run generate-nuxt && npm run generate-eleventy",
"generate-nust": "nuxt generate",
"generate-eleventy": "npx @11ty/eleventy",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lint:fix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
"precommit": "npm run lint",

2865
pages/tv.njk Normal file

File diff suppressed because one or more lines are too long