aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
blob: 15a1bf150fd27949e45cb43f73e9f615267398a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# blog

This repository contains the sources that make up my personal blog, which is
currently hosted at [blog.memzero.de](https://blog.memzero.de).

The blog comes with an own _layout_ and _style_ and is generated with the
static site generator [zola](https://github.com/getzola/zola).

I am by no means a web developer, so be warned about the `html` and `css` you
find in here :^). But in general I like minimalism and `monospace` fonts.

The repository is organized as follows.

- [`templates/`](templates) contains the layout
- [`sass/`](sass) contains the style
- [`content/`](content) contains the blog content (posts + source code examples)

Once zola is installed, the website can be served for testing in the local
network as shown below.
```sh
# Listen on local host (only the device running the command can visit the page).
zola serve --open

# Listen on any address and use the ip address of the device as base url. This
# allows to visit the page during testing from other devices in the same
# network as for example a mobile deive.
zola serve --open -i 0.0.0.0 -u <IP_OF_DEVICE>
```
> NOTE: Serving with zola is only for testing, don't use zola to serve the page
> on the web. Use a proper http server for that.

## development hints

Use the special template variable [`__tera_context`](https://keats.github.io/tera/docs/#variables)
to see the current full context in a template.