This is the source code of my static blog. The blog has several prerequisites:
bash/zsh
git
hugo
anaconda
You only need to do this once
git clone --recursive [email protected]:goFrendiAsgard/static-blog.git
You only need to do this once
conda config --add channels conda-forge
conda config --set channel_priority strict
make init-venv
Do this everytime you want to work with this repo.
conda activate static-blog
You can write article in markdown
or notebook
format.
To write article in markdown, create a <article-name>.md
file in `content/posts, and start writing.
Every article in markdown should be started with
---
title: "<title>"
date: 2019-07-31T07:41:41+07:00
categories:
- <category-1>
- <category-2>
tags:
- <tag-1>
- <tag-2>
---
To write article in notebook, perform make start-jupyter
, create a notebook, and start writing.
Every article in notebook should be started with Raw NBConvert
as follow
---
title: "<title>"
date: 2019-07-31T07:48:41+07:00
categories:
- <category-1>
- <category-2>
tags:
- <tag-1>
- <tag-2>
---
Do this only when you are ready to publish the changes
./deploy.sh "<commit message>"