Browse Source

Configuration directories are now relative to mono-repo root

master
Mobius K 10 months ago
parent
commit
48bd49d51e
  1. 6
      README.md
  2. 15
      config/_default/config.yaml
  3. 2
      config/development/config.yaml

6
README.md

@ -4,7 +4,11 @@ Personal projects and interests.
## Sub-module layout
This project is a sub-module of a parent repository that contains dependency resolution files like NPM's `package.json` and Go's `go.mod`, some build tasks in a `Makefile`, and potentially necessary shared code among many other projects.
This project is a sub-module of a parent repository that contains some shared sources:
- Dependency resolution files like NPM's `package.json` and Go's `go.mod`
- Build tasks in a `Makefile`
- Various code and other scripts
It adds some complexity but helps me maintain several similar projects more efficiently.
To setup the necessary structure:
```bash

15
config/_default/config.yaml

@ -1,11 +1,18 @@
# Where to read files from (relative to parent mono-repo)
assetDir: portfolio/assets
contentDir: portfolio/content
dataDir: portfolio/data
layoutDir: portfolio/layouts
staticDir:
- shared/assets
- portfolio/static
# Write hugo_stats.json to use for CSS post-processing
build:
writeStats: true
# We don't want/need these content types
disableKinds:
# Auto-generate permission for robots to crawl anything
enableRobotsTXT: true
- RSS
- sitemap
- taxonomy
@ -21,10 +28,6 @@ minify:
# Available at $.Site.Params.<key> in templates
params:
# Where to read static files from
staticDir:
- ../shared/assets/
- static
fingerprint:
enabled: true
algorithm: md5 # sha512 (largest), sha384, sha256 (default), or md5 (smallest)

2
config/development/config.yaml

@ -1,7 +1,5 @@
# Write hugo_stats.json to use for CSS post-processing
build:
# Auto-generate permission for robots to crawl anything
enableRobotsTXT: false
writeStats: false
# Minimize HTML

Loading…
Cancel
Save