Skip to content

Latest commit

 

History

History

build-multi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Build multiple Hugo Sites demo

This demonstrates how to build multiple sites using Hugo from either configuration files (config/foo.toml) and directories (config/bar).

How it works

Run mvn package.

Now you should have all those resources on the one hand inside target/generated-resources/hugo/... but also in your resulting JAR and by this available in your classpath at public/....

Config Output in JAR
config/foo.toml target/generated-resources/hugo/foo/ public/foo/
config/bar target/generated-resources/hugo/bar/ public/bar/

Please see pom.xml for details how this is being configured.