Commit cecf5c5c authored by Davide Depau's avatar Davide Depau

Add sample post

parent 9c8f7b5f
---
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 %}
```
......@@ -83,6 +83,9 @@ These boxes are available:
- `red.html`
- `warning.html`
### Sample post
A sample post is available at `/1970-01-01-sample_post`. View it in the website for a quick demo.
## Local preview (i.e. to see posts before commiting)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment