Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Roberto Bochet
poul.org
Commits
cecf5c5c
Verified
Commit
cecf5c5c
authored
Sep 23, 2019
by
Davide Depau
Browse files
Add sample post
parent
9c8f7b5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
1970-01-01-sample_post.md
0 → 100644
View file @
cecf5c5c
---
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 %}
```
README.md
View file @
cecf5c5c
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment