#!/bin/bash # # Hugo templater module. # # Parameters SHARE="$1" # Include basic functions source $SHARE/templater/functions || exit 1 # Hugo implementation function templater_hugo { if [ ! -e "config.toml" ]; then templater_echo "Setting up Hugo..." if which hugo &> /dev/null; then hugo new site . else templater_echo "Hugo not available, please install it, skipping" fi else templater_echo "Hugo already set" fi } # Dispatch templater_hugo