flothesof / travel_blog

Travel blog source for my upcoming sabbatical.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

travel_blog

Travel blog source for my upcoming sabbatical.

How to build this blog

Clone the source

git clone https://github.com/flothesof/travel_blog.git

Install dependencies

I think at least this:

pip install "pelican<4" markdown piexif pillow

Compile translations

cd theme
./translation.sh compile

Build the blog

Either in local editing mode:

pelican -s pelicanconf.py

Or in publishing mode (with all the links pointing to the full website URLs):

pelican -s publishconf.py

Serving the content for previewing locally

The result can be served by a HTTP server from the output directory.

In debug mode, I use this with Python > 3:

python -m http.server --directory output

Notes

Videos

Use ffmpeg as in here.

See also this cheat sheet.

Here's my goto encoding:

ffmpeg -i input.mp4 -s 1280x720 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output.webm

About

Travel blog source for my upcoming sabbatical.

License:MIT License


Languages

Language:Python 37.4%Language:JavaScript 24.4%Language:CSS 14.0%Language:Jupyter Notebook 10.5%Language:HTML 9.9%Language:Shell 1.6%Language:Makefile 1.1%Language:Smarty 1.1%