+++
template = "article.html"
title = "Demo Page"
[extra]
archive = "This page is, in fact, not archived, meaning it will receive content updates."
trigger = "This page contains blackjack and hookers, and bad jokes such as this one."
disclaimer = """
- All tricks in this page are performed by the lab boys, don't try this at home.
- Don't expose yourself to 4000Β° kelvin.
- Don't take party escort submission position.
- Don't interact with asbestos and moon rocks.
"""
+++
Text can be **bold**, _italic_, or ~~strikethrough~~.
[Link to another page](@/demo/page.md).
There should be whitespace between paragraphs.
# Heading 1
This is a normal paragraph following a header.
## Heading 2
> "Original content is original only for a few seconds before getting old"
> > Rule #21 of the internet
### Heading 3
```rust
let highlight = true;
```
```scss, linenos, linenostart=10, hl_lines=3-4 8-9, hide_lines=2 7
pre mark {
display: block;
color: currentcolor;
}
pre table td:nth-of-type(1) {
color: #6b6b6b;
font-style: italic;
}
```
#### Heading 4
- Item 1
- Item 2
- Item 3
- `Item 4`
##### Heading 5
1. Perform step #1
2. Proceed to step #2
3. Conclude with step #3
###### Heading 6
| Mare | Rating | Additional info |
| :----------- | :---------------- | :-------------- |
| Fluttershy | Best pone | Shy |
| Apple Jack | Good pone | Honest and nice |
| Pinke Pie | Fun pone | Party Horn! |
| Twilight | Decent pone | Neeerd |
| Rainbow Dash | Annoying pone | Looks badass |
| Rarity | Fancy pone | Sometimes nice |
- Item foo
- Item bar
- Item baz
- Item zip
1. Item one
2. Item two
3. Item three
4. Item four
- Level 1 item
- Level 2 item
- Level 2 item
- Level 3 item
- Level 3 item
- Level 1 item
***
- [ ] Milk
- [x] Eggs
- [x] Flour
- [ ] Coffee
- [x] Combustible lemons
### Same but interactive
Milk
Eggs
Flour
Coffee
Combustible lemons
### With radio type
Milk
Eggs
Flour
Coffee
Combustible lemons
## Small image
{{ image(url="https://codeberg.org/Codeberg/Design/raw/branch/main/logo/icon/png/codeberg-logo_icon_blue-64x64.png", alt="Codeberg icon", transparent=true, no_hover=true) }}
## Large image
{{ image(url="https://codeberg.org/Codeberg/Design/raw/branch/main/logo/horizontal/png/codeberg-logo_horizontal_blue-850x250.png", alt="Codeberg horizontal", transparent=true, no_hover=true) }}
## Definition lists can be used with HTML syntax.
Name
Godzilla
Born
1952
Birthplace
Japan
Color
Green
```
Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this.
```
```
The final element.
```
## Extra
Alright now that the generic (slightly extended) ~~Jekyll~~ Zola demo page have ended, we can get to the custom stuff, which believe me, is neat.
πππ₯Ίπ€£β€οΈβ¨πππ₯°π
### Shortcodes
Duckquill provides a few useful [shortcodes](https://www.getzola.org/documentation/content/shortcodes/) that simplify some tasks.
#### Alerts
[GitHub-style](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts) alerts. Simply wrap the text of desired alert inside the shortcode to get the desired look.
Available alert types:
- `note`: Useful information that users should know, even when skimming content.
- `tip`: Helpful advice for doing things better or more easily.
- `important`: Key information users need to know to achieve their goal.
- `warning`: Urgent info that needs immediate user attention to avoid problems.
- `caution`: Advises about risks or negative outcomes of certain actions.
```jinja2
{%/* alert(note=true) */%}
-> Alert text <-
{%/* end */%}
```
{% alert(note=true) %}
Useful information that users should know, even when skimming content.
{% end %}
{% alert(tip=true) %}
Helpful advice for doing things better or more easily.
{% end %}
{% alert(important=true) %}
Key information users need to know to achieve their goal.
{% end %}
{% alert(warning=true) %}
Urgent info that needs immediate user attention to avoid problems.
{% end %}
{% alert(caution=true) %}
Advises about risks or negative outcomes of certain actions.
{% end %}
#### Image
By default images come with styling, such as rounded corners and shadow. To fine-tune these, you can use shortcodes with different variable combinations.
Available variables are:
- `url`: URL to an image.
- `url_min`: URL to compressed version of an image, original can be opened by clicking on the image.
- `alt`: Alt text, same as if the text were inside square brackets in Markdown.
- `full`: Forces image to be full-width.
- `full_bleed`: Forces image to fill all the available screen width. Removes shadow, rounded corners and zoom on hover.
- `start`: Float image to the start of paragraph and scale it down.
- `end`: Float image to the end of paragraph and scale it down.
- `pixels`: Uses nearest neighbor algorithm for scaling, useful for keeping pixel-art sharp.
- `transparent`: Removes rounded corners and shadow, useful for transparent images.
- `no_hover`: Removes zoom on hover.
Variables should be comma-separated and be inside the brackets.
```jinja2
{{/* image(url="image.png", alt="This is an image" no_hover=true) */}}
```
{{ image(url="https://i1.theportalwiki.net/img/2/23/Ashpd_blueprint.jpg", alt="Portal Gun blueprint", no_hover=true) }}
Image with an alt text and without zoom on hover
{{ image(url="https://upload.wikimedia.org/wikipedia/commons/b/b4/JPEG_example_JPG_RIP_100.jpg", url_min="https://upload.wikimedia.org/wikipedia/commons/3/38/JPEG_example_JPG_RIP_010.jpg", alt="The gravestone of J.P.G.", no_hover=true) }}
Image with compressed version, an alt text, and without zoom on hover
Alternatively, you can append the following URL anchors. It can be more handy in some cases, e.g such images will render normally in any Markdown editor, opposed to the Zola shortcodes.
- `#full`: Forces image to be full-width.
- `#full-bleed`: Forces image to fill all the available screen width. Removes shadow, rounded corners and zoom on hover.
- `#start`: Float image to the start of paragraph and scale it down.
- `#end`: Float image to the end of paragraph and scale it down.
- `#pixels`: Uses nearest neighbor algorithm for scaling, useful for keeping pixel-art sharp.
- `#transparent`: Removes rounded corners and shadow, useful for transparent images.
- `#no-hover`: Removes zoom on hover.
\

Full-width image with an alt text, pixel-art rendering, no shadow and rounded corners, and no zoom on hover
\

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur.
\
[](https://unsplash.com/photos/a-mountain-lake-surrounded-by-trees-and-snow-CqTOTZh5vrs)
#### Video
Same as images, but with a few differences: `no_hover` and `url_min` are not available.
```jinja2
{{/* video(url="video.webm", alt="This is a video") */}}
```
{{ video(url="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm", alt="Red flower wakes up") }}
WebM video example from MDN
#### CRT
Alright, this one doesn't simplify anything, it just adds a CRT-like effect around Markdown code blocks.
```jinja2
{%/* crt() */%}
-> Markdown code block <-
{%/* end */%}
```
{% crt() %}
```
_____________________________________________
|.'', Public_Library_Halls ,''.|
|.'.'', ,''.'.|
|.'.'.'', ,''.'.'.|
|.'.'.'.'', ,''.'.'.'.|
|.'.'.'.'.| |.'.'.'.'.|
|.'.'.'.'.|===; ;===|.'.'.'.'.|
|.'.'.'.'.|:::|', ,'|:::|.'.'.'.'.|
|.'.'.'.'.|---|'.|, _______ ,|.'|---|.'.'.'.'.|
|.'.'.'.'.|:::|'.|'|???????|'|.'|:::|.'.'.'.'.|
|,',',',',|---|',|'|???????|'|,'|---|,',',',',|
|.'.'.'.'.|:::|'.|'|???????|'|.'|:::|.'.'.'.'.|
|.'.'.'.'.|---|',' /%%%\ ','|---|.'.'.'.'.|
|.'.'.'.'.|===:' /%%%%%\ ':===|.'.'.'.'.|
|.'.'.'.'.|%%%%%%%%%%%%%%%%%%%%%%%%%|.'.'.'.'.|
|.'.'.'.',' /%%%%%%%%%\ ','.'.'.'.|
|.'.'.',' /%%%%%%%%%%%\ ','.'.'.|
|.'.',' /%%%%%%%%%%%%%\ ','.'.|
|.',' /%%%%%%%%%%%%%%%\ ','.|
|;____________/%%%%%Spicer%%%%%%\____________;|
```
{% end %}
## Captions
Media can have additional text description using the `` HTML tag directly under it.
```markdown

The image caption
```

The Office where Stanley works, it has yellow floor and beige walls
## Accordion
I can be a spoiler, I can be a long text, I could be anything.
_Quack-quack!_

## Small
Small, cute text that doesn't catch attention.
## Abbreviation
The ASCII art are awesome!
## Aside
A quill is a writing tool made from a moulted flight feather (preferably a primary wing-feather) of a large bird. Quills were used for writing with ink before the invention of the dip pen, the metal-nibbed pen, the fountain pen, and, eventually, the ballpoint pen.
As with the earlier reed pen (and later dip pen), a quill has no internal ink reservoir and therefore needs to periodically be dipped into an inkwell during writing. The hand-cut goose quill is rarely used as a calligraphy tool anymore because many papers are now derived from wood pulp and would quickly wear a quill down. However it is still the tool of choice for a few scribes who have noted that quills provide an unmatched sharp stroke as well as greater flexibility than a steel pen.
## Keyboard shortcut
```html
β Super + Space
```
To switch the keyboard layout, press β Super + Space.
## Highlighted
You know what? I'm gonna say some very important stuff, so important that even **bold** is not enough.
## Deleted and Inserted
```html
Text deleted Text added
```
Text deleted Text added
## Progress bar
```html
```
## Sample Output
```html
Sample Output
```
Sample Output
## Inline Quote
```html
Inline Quote
```
Blah blah Inline Quote hmm.
## Grammar Mistakes
```html
Gmarrar mitsakes
```
Yeet the sus drip while vibing with the TikTokfam on a cap-free boomerang.
## External link
```html
Link to site
```
Link to site
## Buttons
```html.j2