You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
545 B
Bash
18 lines
545 B
Bash
#! /bin/bash
|
|
|
|
export HUGO_CACHEDIR="/drone/src/hugo_cache/"
|
|
# debug alias
|
|
# alias hugo=hugo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints
|
|
|
|
case $1 in
|
|
main)
|
|
hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com
|
|
;;
|
|
dev)
|
|
hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com
|
|
;;
|
|
drafts)
|
|
hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com
|
|
;;
|
|
esac
|