1970-01-01-sample_post.md 1.78 KB
Newer Older
Davide Depau's avatar
Davide Depau committed
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
---
layout: post
title: Sample post
categories:
- Corsi Linux
- Events
tags:
- Linux
---

Questo è un post d'esempio.

- Elemento
- Di
- Una lista

1. Numerata
2. Se
3. Proprio
4. Vogliamo

## Code

```python
import sys

def hello():
    sys.stdout.write("Complicated hello world\n")

if __name__ == "__main__":
    hello()
```

## Images

- Upload to `assets/img/post-slug`, i.e. `assets/img/1970-01-01-sample_post`

```
![{% raw %}{{ site.baseurl }}{% link 'assets/img/1970-01-01-sample_post/image.jpg' %}]{% endraw %}
```

## Link to page on this site

```
[label]({% raw %}{{ site.baseurl }}{% link 'path-to-file.md' %}{% endraw %})
```

## Link to post

If the post is under a subdirectory, it needs to be included.

```
[label]({% raw %}{{ site.baseurl }}{% post_url wp-export/2019-03-10-corsi-linux-2019 %}{% endraw %})
```
Result: [label]({{ site.baseurl }}{% post_url wp-export/2019-03-10-corsi-linux-2019 %})


## WordPress Alert Boxes

A number of old WordPress alert boxes have been ported. They have a slightly more complicated syntax.

To put links in them, please use plain HTML (as opposed to Markdown — you can use Jekyll tags).

Note that only the first two have been styled out of laziness. More can be added if needed.

#### Important
{% include alerts/important.html content="Important" %}

```
{% raw %}{% include alerts/important.html content="Important" %}{% endraw %}
```

#### Notice
{% include alerts/notice.html content="Notice" %}

```
{% raw %}{% include alerts/notice.html content="Notice" %}{% endraw %}
```

#### Red
{% include alerts/red.html content="Red" %}

```
{% raw %}{% include alerts/red.html content="Red" %}{% endraw %}
```

#### Warning
{% include alerts/warning.html content="Warning" %}

```
{% raw %}{% include alerts/warning.html content="Warning" %}{% endraw %}
```