Last active
March 12, 2018 18:27
-
-
Save johnrlive/446ed10f513aab0ea17b0a37e3ce9677 to your computer and use it in GitHub Desktop.
one-click-hugo-cms-theme-config.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/netlify-templates/one-click-hugo-cms | |
cd one-click-hugo-cms | |
npm install | |
echo "use the config.yml" | |
sleep 1 | |
# delete config.toml | |
rm site/config.toml | |
# create config.yml | |
touch site/config.yml | |
# append base attributes to config.yml | |
cat <<EOT >> site/config.yml | |
baseurl: "/" | |
languageCode: "en-us" | |
title: "Homepage" | |
theme: "hugo_theme_robust" | |
EOT | |
echo "Removed layouts file see site/themes/[hugo_theme_robust]/layouts" | |
sleep 1 | |
rm -R site/layouts/* | |
echo "mkdir site/themes/" | |
sleep 1 | |
mkdir site/themes/ | |
echo "git clone theme" | |
sleep 1 | |
cd site/themes/ | |
git clone https://github.com/johnrlive/hugo_theme_robust | |
# For development use command below | |
cd ../.. && npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment