Blog with a simple terminimal theme.
$ brew install zola
Clone the repo.
$ git clone git@github.com:goingforbrooke/personal_blog.git
Install the theme.
$ git submodule update --init
Add new posts.
$ add `.md` files to `content/`
Preview the site locally.
$ zola serve
Caution: Failing to zero pad post dates will cause build failures. For example, use date = 2023-05-10
, not date = 2023-5-10
.
-
Download from
freefontsfamily.net
. -
Reduce included fonts:
Exo2-Black.ttf
Exo2-BlackItalic.ttf
Exo2-Bold.ttf
Exo2-BoldItalic.ttf
Exo2-ExtraBold.ttf
Exo2-ExtraBoldItalic.ttf
Exo2-ExtraLight.ttf
Exo2-ExtraLightItalic.ttf
Exo2-Italic.ttf
Exo2-Light.ttf
Exo2-LightItalic.ttf
Exo2-Medium.ttf
Exo2-MediumItalic.ttf
Exo2-Regular.ttf
Exo2-SemiBold.ttf
Exo2-SemiBoldItalic.ttf
Exo2-Thin.ttf
Exo2-ThinItalic.ttf
OFL.txt
Exo2-Bold.ttf
Exo2-BoldItalic.ttf
Exo2-Italic.ttf
Exo2-Regular.ttf
- Convert
.ttf
font files to.woff
and.woff2
.
.woff:
: ttf2woff Exo2-Regular.ttf Exo2-Regular.woff
.woff2
: woff2_compress Exo2-Regular.ttf
Exo2-Bold.ttf
Exo2-Bold.woff
Exo2-Bold.woff2
Exo2-BoldItalic.ttf
Exo2-BoldItalic.woff
Exo2-BoldItalic.woff2
Exo2-Italic.ttf
Exo2-Italic.woff
Exo2-Italic.woff2
Exo2-Regular.ttf
Exo2-Regular.woff
Exo2-Regular.woff2
- Copy
font-hack.scss
.
cp sass/font-hack.scss sass/font-exo2.scss
-
In
font-exo2.scss
, rename instances ofhack
toexo2
andHack
toExo2
. -
In
head.html
, add a configuration option for an additional font.
from:
{%- if config.extra.use_full_hack_font %}
<link rel="stylesheet" href="{{ get_url(path="font-hack.css", trailing_slash=false) | safe }}">
{% else %}
<link rel="stylesheet" href="{{ get_url(path="font-hack-subset.css", trailing_slash=false) | safe }}">
{% endif -%}
to:
{%- if config.extra.use_full_hack_font == "exo2" %}
<link rel="stylesheet" href="{{ get_url(path="font-exo2.css", trailing_slash=false) | safe }}">
<link rel="stylesheet" href="{{ get_url(path="font-hack.css", trailing_slash=false) | safe }}">
{%- elif config.extra.use_full_hack_font %}
<link rel="stylesheet" href="{{ get_url(path="font-hack.css", trailing_slash=false) | safe }}">
{% else %}
<link rel="stylesheet" href="{{ get_url(path="font-hack-subset.css", trailing_slash=false) | safe }}">
{% endif -%}
- In the blog's
config.toml
(not Terminimal's (template)config.toml
), change config value.
from:
change use_full_hack_font = false
to:
change use_full_hack_font = 'exo2'
https://realfavicongenerator.net/favicon_checker?protocol=http&site=www.goingforbrooke.com