Hi, welcome to my personal blog!
- Support tag/archive/category list
- Support Google Analytics
- Archive time line
- Home page
- Python3 is required to parse and compile markdown files. It's recommended to install Anaconda to manage different python versions.
- npm is required for frontend development. nvm is strongly recommended.
- After setting up python3 and npm, run
make install
to install both python and npm dependencies.
- Fill in id and view_id fields in
docs/config.toml
. - Get the json keyfile from Google APIs - Credentials and save it to
ga.json
. - Convert to a base64 environment variable by
cat ga.json | base64 | tr -d \\n | cat <(echo -n "export GA_API_BASE64=") - > ga.sh
. - Export the created environment variable by
source ga.sh
. - In the github repo, goto Settings -> Secrets -> New secret and add this environment variable, which will be used by github actions for deployment.
- Run once with
make dev
and then you can comment outpython $(GA_PARSER) --config $(CONFIG) -o $(GA_OBJ)
in Makefile to disable GA tracing, since we don't need to keep track of the hit count during development.
Fill in the shortname field in docs/config.toml
.
Run make dev
to start the local server at https://localhost:8089/
. Then view the website by entering this url in browser.
TODO
Q: When run make dev
, it reports digital envelope routines::unsupported
?
A: Try export NODE_OPTIONS=--openssl-legacy-provider
.