update testbed
This commit is contained in:
parent
0de1e63a3e
commit
eae5db6b4a
11 changed files with 106 additions and 7 deletions
|
@ -34,6 +34,7 @@ def md_to_html(
|
|||
## Kakoune Script?!
|
||||
|
||||
```kak
|
||||
# a configuration snippet
|
||||
declare-option -hidden bool on_server %sh{
|
||||
if [ -z "$KAK_ON_SERVER" ]; then
|
||||
printf 'false'
|
||||
|
@ -44,4 +45,5 @@ declare-option -hidden bool on_server %sh{
|
|||
|
||||
define-command -override true nop
|
||||
define-command -override false fail
|
||||
map global normal x ':echo gamer<ret>'
|
||||
```
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
post: true
|
||||
date: September 3, 2025
|
||||
---
|
||||
|
||||
Okay, here's a post. It references [topic](./topic.md). What??
|
||||
|
|
|
@ -141,13 +141,21 @@ pre {
|
|||
overflow-x: auto;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: #1d1d1d;
|
||||
color: #d5d5d5;
|
||||
/* Inline code styling */
|
||||
:not(pre) > code {
|
||||
padding: 0.2em 0.4em;
|
||||
border-radius: 3px;
|
||||
background-color: #1d1d1d;
|
||||
color: #d5d5d5;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
/* Block code styling (inherits from pre) */
|
||||
pre code {
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
background: none;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 0.95rem;
|
||||
|
@ -234,3 +242,6 @@ small a {
|
|||
color: var(--main-small-text-color);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
6
content/wip.md
Normal file
6
content/wip.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: This Post Is WIP
|
||||
draft: true
|
||||
---
|
||||
|
||||
I don't want this in the website!
|
8
justfile
8
justfile
|
@ -1,8 +1,8 @@
|
|||
init:
|
||||
#!/bin/sh
|
||||
if [ -f config.yml ]; then
|
||||
rm config.yml
|
||||
fi
|
||||
# if [ -f config.yml ]; then
|
||||
# rm config.yml
|
||||
# fi
|
||||
just run init
|
||||
|
||||
build:
|
||||
|
@ -16,5 +16,5 @@ run *args:
|
|||
if [ -d "public" ] && [ "$1" = "build" ]; then
|
||||
rm -r public
|
||||
fi
|
||||
uv run --project ~/dev/zona-py zona "$@"
|
||||
uv run --project ~/dev/zona zona "$@"
|
||||
|
||||
|
|
40
templates/base.html
Normal file
40
templates/base.html
Normal file
|
@ -0,0 +1,40 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ metadata.title }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta charset="UTF-8" />
|
||||
<link
|
||||
href="{{ metadata.style }}"
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
media="all"
|
||||
/>
|
||||
<link
|
||||
href="/static/pygments.css"
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
media="all"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
{% if header %}
|
||||
<header id="header">
|
||||
<center>
|
||||
{{ header | safe }}
|
||||
</center>
|
||||
<hr>
|
||||
</header>
|
||||
{% endif %}
|
||||
{% block content %}{% endblock %}
|
||||
{% if footer %}
|
||||
<footer id="footer">
|
||||
<hr>
|
||||
{{ footer | safe }}
|
||||
</footer>
|
||||
{% endif %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
6
templates/basic.html
Normal file
6
templates/basic.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ content | safe }}
|
||||
{% endblock %}
|
||||
|
1
templates/footer.md
Normal file
1
templates/footer.md
Normal file
|
@ -0,0 +1 @@
|
|||
My Markdown footer!
|
5
templates/header.html
Normal file
5
templates/header.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<ul>
|
||||
{% for name, url in site_map.items() %}
|
||||
<li><a href="{{ url }}">{{ name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
10
templates/page.html
Normal file
10
templates/page.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<center><h1>{{ metadata.title }}</h1></center>
|
||||
{% if metadata.date %}
|
||||
<center><small><time datetime="{{ metadata.date | safe }}">{{ metadata.date | safe}}</time></small></center>
|
||||
{% endif %}
|
||||
<article>{{ content | safe }}</article>
|
||||
{% endblock %}
|
||||
|
17
templates/post_list.html
Normal file
17
templates/post_list.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<center><h1>{{ metadata.title }}</h1></center>
|
||||
|
||||
<article>{{ content | safe }}</article>
|
||||
|
||||
{% if post_list %}
|
||||
<ul>
|
||||
{% for item in post_list %}
|
||||
<li><small><time datetime="{{ item.metadata.date | safe }}">{{ item.metadata.date | safe}}</time></small>: <a href="/{{ item.url }}">{{ item.metadata.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue