My name is Darío Cutillas Carrillo, I'm a software engineer and this is my personal blog which you can visit in https://blog.dario.nu.
The following instructions are mostly for the future me.
If you just cloned the repository, initialize and clone git submodules:
git submodule init
git submodule update
And also install the necessary hooks:
.repo_chores/install
./configure
Will install netlify ./preview
Preview this site in the browser.
Drafts are enabled. ./deploy
Builds and deploy the site. It will require you
to be able to decrypt netlify.token
.
The netlify.token
contains an encrypted token for deployment.
To generate a new token stored in clipboard use:
echo "$(wl-paste)" | gpg --encrypt -r foo@bar.com
Keeping an encrypted token in the repo sources is for the convenience of being able to publish the site no matter in which VCS platform I decide to host this repository.
To create new post
hugo new --kind chapter posts/article-name/index.md
To create content pages:
hugo new folder/content.md
Both asciidocs and markdown contents are supported.
To serve:
hugo serve
To build the website:
hugo
Or use the convenience scripts instead.