Initial commit -- migration to zola

This commit is contained in:
Petr Velička 2025-05-24 12:21:17 +02:00
commit a79e7faa87
Signed by: petrvel
GPG key ID: E8F909AFE649174F
55 changed files with 375 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
public

16
config.toml Normal file
View file

@ -0,0 +1,16 @@
# The URL the site will be built for
base_url = "https://brloh.is"
# Whether to automatically compile all Sass files in the sass directory
compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = false
[extra]
# Put all your custom variables here

8
content/lang/_index.md Normal file
View file

@ -0,0 +1,8 @@
+++
title = "Linguistics"
sort_by = "date"
template = "blog.html"
page_template = "post.html"
+++
Here you can see some curiosities from languages spoken all over the world.

8
content/math/_index.md Normal file
View file

@ -0,0 +1,8 @@
+++
title = "Math"
sort_by = "date"
template = "blog.html"
page_template = "post.html"
+++
Here you can see some mathematical curiosities and notes for courses I have attended in the past.

8
content/travel/_index.md Normal file
View file

@ -0,0 +1,8 @@
+++
title = "Travel"
sort_by = "date"
template = "blog.html"
page_template = "post.html"
+++
Here you can see some curiosities from my travels all over the world.

54
content/travel/metro.md Normal file
View file

@ -0,0 +1,54 @@
+++
title = "Prague Metro D"
date = 2025-05-17
slug = "prg_metro_d"
+++
Some photos I took during the viewing offered free of charge by Prague public transit agency [DPP](https://dpp.cz/). You can click on the images to open them in a new tab in higher resolution.
The new line D is currently under construction and the first part of it from Pankrác to Libuš in the southern part of the city is currently planned to open in 2031.
<div class="gallery">
<a target="_blank" href="/img/2025-05-17-metro/pic1.jpg"><img src="/img/2025-05-17-metro/pic1.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic2.jpg"><img src="/img/2025-05-17-metro/pic2.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic3.jpg"><img src="/img/2025-05-17-metro/pic3.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic4.jpg"><img src="/img/2025-05-17-metro/pic4.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic5.jpg"><img src="/img/2025-05-17-metro/pic5.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic7.jpg"><img src="/img/2025-05-17-metro/pic7.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic8.jpg"><img src="/img/2025-05-17-metro/pic8.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic9.jpg"><img src="/img/2025-05-17-metro/pic9.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic10.jpg"><img src="/img/2025-05-17-metro/pic10.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic11.jpg"><img src="/img/2025-05-17-metro/pic11.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic12.jpg"><img src="/img/2025-05-17-metro/pic12.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic13.jpg"><img src="/img/2025-05-17-metro/pic13.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic14.jpg"><img src="/img/2025-05-17-metro/pic14.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic15.jpg"><img src="/img/2025-05-17-metro/pic15.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic16.jpg"><img src="/img/2025-05-17-metro/pic16.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic17.jpg"><img src="/img/2025-05-17-metro/pic17.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic18.jpg"><img src="/img/2025-05-17-metro/pic18.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic19.jpg"><img src="/img/2025-05-17-metro/pic19.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic20.jpg"><img src="/img/2025-05-17-metro/pic20.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic21.jpg"><img src="/img/2025-05-17-metro/pic21.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic24.jpg"><img src="/img/2025-05-17-metro/pic24.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic26.jpg"><img src="/img/2025-05-17-metro/pic26.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic27.jpg"><img src="/img/2025-05-17-metro/pic27.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic28.jpg"><img src="/img/2025-05-17-metro/pic28.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic29.jpg"><img src="/img/2025-05-17-metro/pic29.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic30.jpg"><img src="/img/2025-05-17-metro/pic30.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic31.jpg"><img src="/img/2025-05-17-metro/pic31.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic32.jpg"><img src="/img/2025-05-17-metro/pic32.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic33.jpg"><img src="/img/2025-05-17-metro/pic33.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic34.jpg"><img src="/img/2025-05-17-metro/pic34.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic35.jpg"><img src="/img/2025-05-17-metro/pic35.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic36.jpg"><img src="/img/2025-05-17-metro/pic36.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic37.jpg"><img src="/img/2025-05-17-metro/pic37.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic38.jpg"><img src="/img/2025-05-17-metro/pic38.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic39.jpg"><img src="/img/2025-05-17-metro/pic39.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic40.jpg"><img src="/img/2025-05-17-metro/pic40.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic41.jpg"><img src="/img/2025-05-17-metro/pic41.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic42.jpg"><img src="/img/2025-05-17-metro/pic42.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic43.jpg"><img src="/img/2025-05-17-metro/pic43.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic44.jpg"><img src="/img/2025-05-17-metro/pic44.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic45.jpg"><img src="/img/2025-05-17-metro/pic45.jpg" alt="2025-05-17 Metro D"></a>
<a target="_blank" href="/img/2025-05-17-metro/pic46.jpg"><img src="/img/2025-05-17-metro/pic46.jpg" alt="2025-05-17 Metro D"></a>
</div>

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 976 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 868 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 633 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,005 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

185
static/style.css Normal file
View file

@ -0,0 +1,185 @@
html {
overflow-y: scroll;
}
body {
background-color: #fff;
color: #000;
font-family: sans-serif;
padding: 0;
margin: 0;
}
pre, code {
margin: 0;
}
a {
color: #005386;
}
#header a, #nav a, #menu a {
text-decoration: none;
}
#nav a:hover {
background-color: #ddd;
}
#menu {
clear: both;
color: #069;
overflow: hidden;
background-color: #17a;
padding: 0.7ex;
border-top: 1px solid #ccc;
border-bottom: 1px solid #069;
}
#menu a {
padding: 0.5ex 1ex;
color: #fff;
}
#menu span {
color: #fff;
}
#menu a:hover {
background-color: #069;
}
#header {
background-color: #eee;
clear: both;
color: #555;
font-size: 1.78em;
padding: 0.7ex 0.7ex 0.7ex 0.7em;
}
#headerLink {
color: #17a;
margin-left: 5px;
}
h1 {
margin: 1em 1ex 0.5ex 0;
font-size: 1.4em;
}
h2 {
margin: 1em 1ex 0.5ex 0;
font-size: 1.3em;
}
h3 {
margin: 1em 1ex 0.5ex 0;
font-size: 1.0em;
}
h4 {
margin: 1em 1ex 0.5ex 0;
font-size: 0.9em;
}
#headerSubtitle {
font-size: 0.75em;
font-style: italic;
margin-left: 1em;
}
#content {
clear: both;
margin: 0;
padding: 0;
}
#nav {
float: left;
margin: 0 1px 0 0;
padding: 1em 0;
border-right: 1px dotted #ccc;
width: 300px;
}
#nav ul {
margin: 0;
padding: 0;
}
#nav li {
list-style: none;
padding: 0;
margin: 0;
}
#nav li ul {
padding-left: 0.6em !important;
}
#nav li a {
display: block;
margin: 0;
padding: 0.8ex 2em 0.8ex 1em;
}
#main {
margin: 0 0 0 300px;
max-width: 50em;
padding: 1.5em;
}
.gallery {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-gap: 20px;
}
.gallery a img {
width: 100%;
height: 100%;
object-fit: cover;
}
.left {
float: left;
margin: 0;
padding: 0;
}
.right {
float: right;
margin: 0;
padding: 0;
}
.hidden {
display: none;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #000;
color: #bdbdbd;
}
#menu {
border-top: 1px solid #222;
}
#header {
background-color: #111;
}
#nav a:hover {
background-color: #222;
}
blockquote, pre, code {
background-color: #111;
border-color: #222;
}
a {
color: #56c8ff;
}
#main img[src$=svg] {
filter: invert(1);
}
}

8
templates/404.html Normal file
View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block content %}
<h1>Error 404: Page Not Found</h1>
<p>
Feel free to look around though! Maybe you will find something beary 🐻 interesting!</p>
{% endblock content %}

29
templates/base.html Normal file
View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% block page_title %} {% endblock page_title %} Bear's den</title>
<link rel="stylesheet" type="text/css" href="{{ get_url(path='style.css') }}"/>
<link rel="icon" type="image/x-icon" href="{{ get_url( path='favicon.ico') }}">
</head>
<body>
<div id="menu">
<a href="/">home/</a>
<a href="https://git.brloh.is">git/</a>
<a href="/lang">lang/</a>
<a href="/math">math/</a>
<a href="/travel">travel/</a>
<span class="right">
Bear's den 🐻
</span>
</div>
<div id="content">
<div id="nav">
{% block nav %} {% endblock nav %}
</div>
<div id="main">
{% block content %} {% endblock content %}
</div>
</div>
</body>
</html>

23
templates/blog.html Normal file
View file

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block page_title %}
{{section.title}} |
{% endblock page_title %}
{% block nav %}
<ul>
<li><a href="{{ section.permalink | safe }}">{{ section.title | lower }}/</a></li>
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.slug }}/</a></li>
{% endfor %}
</ul>
{% endblock nav %}
{% block content %}
<h1 class="title">
{{ section.title }}
</h1>
{{ section.content | safe }}
{% endblock content %}

8
templates/index.html Normal file
View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block content %}
<h1>Welcome to Bear's den! 🐻</h1>
<p>Theme inspired by <a href="https://suckless.org/">suckless</a>. Website powered by <a href="https://getzola.org/">zola</a>.</p>
<p>If you wonder, where the URL of this website comes from, <i>Brloh</i> is Czech for "bear's den".</p>
{% endblock content %}

27
templates/post.html Normal file
View file

@ -0,0 +1,27 @@
{% extends "base.html" %}
{% block page_title %}
{{page.title}} |
{% endblock page_title %}
{% block nav %}
<ul>
<!-- If you are using pagination, section.pages will be empty.
You need to use the paginator object -->
{% set section = get_section(path=page.ancestors | last) %}
<li><a href="{{ section.permalink | safe }}">{{ section.title | lower }}/</a></li>
{% for p in section.pages %}
<li><a href="{{ p.permalink | safe }}">{{ p.slug }}/</a></li>
{% endfor %}
</ul>
{% endblock nav %}
{% block content %}
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle"><strong>{{ page.date }}</strong></p>
{{ page.content | safe }}
{% endblock content %}