Title: Demo Post
Author: Sean Hammond
Date: 2024-09-04
Category: Tech
Summary: This is the demo site for [Sidecar](https://github.com/seanh/sidecar),
a plain but pretty theme for the [Pelican](https://getpelican.com/) static
site generator. This post demos a few of the things you can do with Sidecar…
This is the demo site for [Sidecar](https://github.com/seanh/sidecar),
a plain but pretty theme for the [Pelican](https://getpelican.com/) static
site generator. This post demos a few of the things you can do with Sidecar.
See [Sidecar's README](https://github.com/seanh/sidecar) for more features and
customization settings.
Tables of contents
Put `` anywhere in a post or page and it'll be turned
into a table of contents like this:
If you have any headings that you don't want to be in the table of
contents put the CSS class `"notoc"` on them:
`
...
`
## Code blocks with syntax highlighting
See [Syntax highlighting](https://docs.getpelican.com/en/latest/content.html#syntax-highlighting)
in Pelican's docs and see the Pygments site for the available
[language names](https://pygments.org/languages/).
```python
def lorem_ipsum(dolor, sit_amet="default"):
"""
Consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
"""
magna_aliqua = [i for i in range(10) if i % 2 == 0]
incididunt_ut_labore = {k: v for k, v in enumerate(magna_aliqua)}
try:
for consectetur in incididunt_ut_labore.values():
if consectetur > 5:
print("Magna aliqua:", consectetur)
else:
print("Ut labore et dolore:", consectetur)
except Exception as e:
print("Error:", str(e))
```
## Figures
You can create figures with captions using the standard HTML
[``](https://html.spec.whatwg.org/multipage/grouping-content.html#the-figure-element)
and [``](https://html.spec.whatwg.org/multipage/grouping-content.html#the-figcaption-element)
elements:
Photo by hidde schalm on Unsplash
Embedded videos and audio with standard HTML [`