2 minutos de lectura
hugo server -DEF --gc --i18n-warnings --debug
-D, --buildDrafts -> include content marked as draft
-E, --buildExpired -> include expired content
-F, --buildFuture -> include content with publishdate in the future
--gc -> enable to run some cleanup tasks (remove unused cache files) after the build
--i18n-warnings -> print missing translations
-e production
Usar gzip con Hugo (mejor brotli)
find public \( -name '*.html' -o -name '*.css' -o -name '*.js' \) -exec gzip -fk {} +
Yarn
apk add yarn
git submodule init # If you haven't initialized before
git submodule add https://github.com/okkur/syna.git themes/syna
cd themes/syna
git checkout v0.17 # Latest release as of now is v0.17.0
git clone https://github.com/okkur/syna-start && cd syna-start
git submodule init
git submodule update
[build] writeStats = true
#enableGitInfo
o apk add git
git submodule update --remote; git add themes/ ;
git commit -m "Updating theme submodule" ; git push origin master
¿Fue útil esta página?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.