diff --git a/config.toml b/config.toml
index 2743382..e872c65 100644
--- a/config.toml
+++ b/config.toml
@@ -3,7 +3,7 @@ title = "s3rius blog"
base_url = "https://s3rius.blog"
theme = "hermit_zola"
compile_sass = true
-minify_html = true
+minify_html = false
build_search_index = true
generate_sitemap = true
@@ -16,6 +16,7 @@ render_emojis = true
smart_punctuation = true
[extra]
+preview_image = "preview.png"
home_subtitle = "Notes on writing unmaintainable software"
footer_copyright = ' · CC BY-NC 4.0'
@@ -32,11 +33,6 @@ hermit_social = [
]
-[extra.highlightjs]
-enable = true
-clipboard = true
-theme = "https://unpkg.com/nord-highlightjs@0.1.0/dist/nord.css"
-
[extra.author]
name = "Pavel Kirilin"
email = "s3rius@le-memese.com"
diff --git a/content/posts/kube-intro/index.md b/content/posts/kube-intro/index.md
index f63ed07..fa79d6f 100644
--- a/content/posts/kube-intro/index.md
+++ b/content/posts/kube-intro/index.md
@@ -4,9 +4,7 @@ weight = 0
date = "2025-07-22"
[extra]
-image = "posts/kube-intro/preview.png"
-image_width = 1200
-image_height = 720
+preview_image = "posts/kube-intro/preview.png"
+++

diff --git a/themes/hermit_zola/sass/style.scss b/themes/hermit_zola/sass/style.scss
index 89315ea..a9df7f5 100644
--- a/themes/hermit_zola/sass/style.scss
+++ b/themes/hermit_zola/sass/style.scss
@@ -42,7 +42,7 @@ pre tt {
pre {
max-height: 40em;
- padding: 0.7em 1.1em;
+ padding: 0em;
overflow: auto;
overflow-y: auto;
overflow-x: scroll;
@@ -67,7 +67,8 @@ pre {
}
code {
- padding: 0;
+ display: block;
+ padding: 0.7em;
margin: 0;
table {
@@ -81,7 +82,6 @@ pre {
}
code[data-name] {
- display: block;
position: relative;
padding-top: 2em !important;
@@ -91,10 +91,10 @@ pre {
font-weight: bold;
top: 0;
left: 0;
- padding-left: 1em;
+ padding-left: 0.7em;
padding-top: 0.2em;
width: 100%;
- background-color: $midnightblue;
+ background-color: $highlight-grey;
z-index: 1;
color: $text;
}
diff --git a/themes/hermit_zola/templates/index.html b/themes/hermit_zola/templates/index.html
index 5254c11..6d5f22b 100644
--- a/themes/hermit_zola/templates/index.html
+++ b/themes/hermit_zola/templates/index.html
@@ -42,22 +42,24 @@
{% endif %}
- {% if page.extra and page.extra.image %}
-
-
-
+ {% if page.extra and page.extra.preview_image %}
+ {% set meta = get_image_metadata(path=page.extra.preview_image) %}
+
+
+
-
-
-
+
+
+
{% else %}
-
-
-
+ {% set meta = get_image_metadata(path=config.extra.preview_image) %}
+
+
+
-
-
-
+
+
+
{% endif %}
@@ -119,32 +121,6 @@
- {% if config.extra.highlightjs.enable %}
-
-
-
-
-
-
-
- {% if config.extra.highlightjs.clipboard %}
-
-
- {% endif %}
-
- {% endif %}
-
- {% if not config.extra.highlightjs.enable %}
-
- {% endif %}
{% block js_footer %}