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
486 B
Bash

#! /bin/bash
HUGOCMD="hugo"
# debug alias
#HUGOCMD="hugo --enableGitInfo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints"
case $1 in
main)
$HUGOCMD -v -d /drone/src/public/ --baseURL https://ndumas.com
;;
dev)
$HUGOCMD -v -d /drone/src/public/ --baseURL https://dev.ndumas.com
;;
drafts)
$HUGOCMD -v -DF -d /drone/src/public/ --baseURL https://drafts.ndumas.com
;;
esac