Modified hugo.toml to use section in post front-matter for permalinks Updated layouts/_default/single.html to handle posts without categories Modified scripts/generate-content.js to organize content by category Deleted content/_index.md and added new category directories
34 lines
743 B
TOML
34 lines
743 B
TOML
baseURL = 'http://www.mistergeek.net/'
|
|
languageCode = 'fr-fr'
|
|
title = 'Mistergeek'
|
|
# theme = "your-theme"
|
|
ignoreLogs = ["warning-goldmark-raw-html"]
|
|
|
|
# [permalinks]
|
|
# posts = "/:section/:slug/"
|
|
|
|
[taxonomies]
|
|
category = "categories"
|
|
|
|
[markup.goldmark.renderer]
|
|
unsafe = true
|
|
|
|
# WordPress API Configuration
|
|
[params.wordpress]
|
|
apiUrl = "https://www.mistergeek.net/wp-json/wp/v2"
|
|
postsPerPage = 10
|
|
featuredImageSize = "large"
|
|
authorEndpoint = "users"
|
|
categoryEndpoint = "categories"
|
|
tagEndpoint = "tags"
|
|
|
|
# Build configuration
|
|
[build]
|
|
writeStats = true
|
|
[[build.cachebusters]]
|
|
source = "assets/.*\\.(js|ts|jsx|ts)$"
|
|
target = "js"
|
|
[[build.cachebusters]]
|
|
source = "assets/.*\\.(css|sass|scss)$"
|
|
target = "css"
|