Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.26 KB

README.md

File metadata and controls

62 lines (46 loc) · 1.26 KB

ACP Brasil

Cloning this repo

git clone --recursive git@github.com:acpbrasil/acpbrasil-blog-hugo.git

Commands

Create a new blog post

./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

Start the project from the scratch

hugo new site acpbrasil-blog-hugo
cd acpbrasil-blog-hugo/
git init
echo "public" >> .gitignore
git ac "initial commit - generated by hugo@v0.54"
git remote add origin git@github.com:acpbrasil/acpbrasil-blog-hugo.git
git push -u origin master

For GitHub Pages publishing

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

For themes

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