git clone --recursive [email protected]:acpbrasil/acpbrasil-blog-hugo.git
./util/create_post.sh title-of-the-post
Example:
./util/create_post.sh Visto EB3 Como Funciona
Creating blog post in: 2019-08-24-visto-eb3-como-funciona/index.md
/Users/denisazevedo/Dev/Projects/acpBrasil/acpbrasil-blog-hugo/content/pt/blog/2019-08-24-visto-eb3-como-funciona/index.md created
hugo new site acpbrasil-blog-hugo
cd acpbrasil-blog-hugo/
git init
echo "public" >> .gitignore
git ac "initial commit - generated by [email protected]"
git remote add origin [email protected]:acpbrasil/acpbrasil-blog-hugo.git
git push -u origin master
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Initializing gh-pages branch"
git push origin gh-pages
git checkout master
git submodule add https://github.com/saey55/hugo-elate-theme.git themes/elate
# Elate
cp -R ../source/. ./
cp -r themes/elate/exampleSite/content/ ./content/
cp -r themes/elate/exampleSite/static/ ./static/
hugo server -D
git add .
git commit -m "add theme and basic info"
git push