Pureblog - Pure content. Any language.

← Back

Design, layout and typography

5 min read

Pureblog is built around a minimalist design that covers the needs of publishing blog posts.

Typography examples

Headings and section titles

# Heading level 1
## Heading level 2
### Heading level 3
#### Heading level 4

Heading level 1

Heading level 2

Heading level 3

Heading level 4

Paragraphs and formatting

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc pulvinar urna erat, et sollicitudin mi sodales id. Quisque sit amet egestas ex. Proin id diam ante. Duis varius porttitor luctus. Maecenas tempus nunc sed enim vehicula, sit amet laoreet turpis eleifend. Nunc vel sollicitudin neque. Quisque at laoreet metus. Proin sed odio nec urna eleifend interdum. Integer luctus magna nec neque consequat sagittis.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc pulvinar urna erat, et sollicitudin mi sodales id. Quisque sit amet egestas ex. Proin id diam ante. Duis varius porttitor luctus. Maecenas tempus nunc sed enim vehicula, sit amet laoreet turpis eleifend. Nunc vel sollicitudin neque. Quisque at laoreet metus. Proin sed odio nec urna eleifend interdum. Integer luctus magna nec neque consequat sagittis.

**Bold text**
_Italic text_
*Italic text*
~~Strikethrough text~~
`Inline code`
> Quote

Bold text

Italic text

Italic text

Strikethrough text

Inline code

Quote

Empty lines separate paragraphs. A simple line break inside a paragraph is converted to a space, in line with the standard Markdown behaviour.

Note: strikethrough (~~…~~) is intentionally ignored inside inline code (between single backticks) and code blocks (between triple backticks), so that code samples are rendered as-is.

Bullet lists

- First item
- Second item
- Third item

Numbered lists

1. First item
2. Second item
3. Third item
  1. First item
  2. Second item
  3. Third item

Code

Inline code embedded in text:

`Inline code`

Inline code

Multiple lines of code:

```
def hello() -> str:
    return "world"
```
def hello() -> str:
    return "world"

There is no automatic line wrapping when laying out multiple lines of code.

Link examples

There are 4 types of links:

The tab: prefix and internal links can be combined. For example, [Internal link in a new tab](tab:posts/001-getting-started.en.md) opens the resolved internal link in a new tab.

🔐 Security note: links opened in a new tab (tab:) automatically receive the attributes target="_blank" and rel="noopener noreferrer", which protects your visitors from tabnabbing.

<http://www.example.com>
[Open in the same tab](http://www.example.com)
[Open in a new tab](tab:http://www.example.com)
[Internal link](posts/001-getting-started.en.md)
[Internal link in a new tab](tab:posts/001-getting-started.en.md)

http://www.example.com

Open in the same tab

Open in a new tab

Internal link

Internal link in a new tab

If an internal link is used in text but does not exist, a warning is reported during the blog build.

Images

Embedding images in text relies on the standard Markdown syntax. Images can be internal or external.

![External image example](https://i.ibb.co/Vvh17pr/3jxqrKP.jpg)

![Internal image example](assets/img/got_wallpaper.jpg)

External image example

Internal image example

By default, images are displayed so as not to exceed the width of the text and are always centred. This ensures that overly large images render properly, including on smartphone screens.

If an internal image is used in text but does not exist, a warning is reported during the blog build.

Customising the design of Pureblog (advanced)

The configuration of your Pureblog relies on the configuration file. By default, the configuration file is at config/config.yml. This configuration file contains a theme section that references two files. These files allow you to adapt the design of your Pureblog.

The template file (theme.template_file) is an HTML file that defines the overall structure of a Pureblog page. You can adapt it to change the overall page structure.

The template file contains parameters that are replaced when the site is built. The parameters available in the template are:

Visual style changes can be made in the stylesheet. The style file (theme.style_file) is a CSS file that defines the formatting rules for the various elements of the site.