Compare commits

...

2 Commits

Author SHA1 Message Date
79bc467bf6 fix: styling
Some checks failed
Deploy Website / deploy-website (push) Successful in 28s
Release Standalone Builder / build (release) Successful in 29s
Release Standalone Builder / publish-aur (release) Failing after 4m6s
Release Standalone Builder / publish-homebrew (release) Successful in 7s
2026-05-05 20:50:59 +02:00
8a5fa202de fix: rsync permissions
All checks were successful
Deploy Website / deploy-website (push) Successful in 27s
2026-05-05 20:44:47 +02:00
4 changed files with 71 additions and 8 deletions

View File

@@ -37,6 +37,7 @@ jobs:
- name: Deploy website - name: Deploy website
run: | run: |
rsync -az --delete \ rsync -rlz --delete --omit-dir-times \
--exclude '/logs/' \
-e "ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \ -e "ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
out/ "${{ secrets.REMOTE_HOST }}:/var/www/kewt.krzak.org/" out/ "${{ secrets.REMOTE_HOST }}:/var/www/kewt.krzak.org/"

View File

@@ -23,10 +23,17 @@ function unique_id(raw_id, candidate) {
seen_ids[candidate]++ seen_ids[candidate]++
return candidate "-" seen_ids[candidate] return candidate "-" seen_ids[candidate]
} }
function has_inline_link(line) {
return (index(line, "<a ") > 0 || index(line, "<a\t") > 0)
}
function print_heading(tag, line, id) { function print_heading(tag, line, id) {
id = unique_id(strip_markdown(line)) id = unique_id(strip_markdown(line))
if (enable_header_links == "true") { if (enable_header_links == "true") {
if (has_inline_link(line)) {
print "<" tag " id=\"" id "\">" line " <a href=\"#" id "\" class=\"header-anchor\" aria-label=\"Link to this section\">#</a></" tag ">" print "<" tag " id=\"" id "\">" line " <a href=\"#" id "\" class=\"header-anchor\" aria-label=\"Link to this section\">#</a></" tag ">"
} else {
print "<" tag " id=\"" id "\"><a href=\"#" id "\" class=\"header-link\">" line "<span class=\"header-anchor\" aria-hidden=\"true\">#</span></a></" tag ">"
}
} else { } else {
print "<" tag " id=\"" id "\">" line "</" tag ">" print "<" tag " id=\"" id "\">" line "</" tag ">"
} }

View File

@@ -1,12 +1,9 @@
--- ---
title = "Heaven" title = "Heaven"
content_warning = "This page may contain CSS" content_warning = "This page may have bad effects on people with an allergy to cats"
--- ---
# Heaven # Heaven
Told you Told you
Probably should've mentioned the catgirl too ![catgirl.jpg]
| --- | --- |
| ```!![/styles.css]``` | <img style="vertical-align: top;" src="catgirl.jpg"> |

View File

@@ -37,6 +37,11 @@ body {
} }
header { header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
padding: 20px; padding: 20px;
padding-bottom: 0; padding-bottom: 0;
border-bottom: 1px solid var(--code-border); border-bottom: 1px solid var(--code-border);
@@ -45,6 +50,8 @@ header {
header h1 { header h1 {
margin: 0; margin: 0;
flex: 1 1 auto;
min-width: 0;
font-size: 35px; font-size: 35px;
font-weight: bold; font-weight: bold;
font-style: italic; font-style: italic;
@@ -114,6 +121,12 @@ a {
margin-left: -10px; margin-left: -10px;
} }
#side-bar a.current-page:hover,
#side-bar a.current-page:focus {
color: var(--fg);
background: transparent;
}
a:hover { a:hover {
background: var(--fg); background: var(--fg);
color: var(--bg); color: var(--bg);
@@ -131,6 +144,50 @@ h3 {
font-weight: normal; font-weight: normal;
} }
.header-link {
color: inherit;
display: inline;
}
.header-link:hover,
.header-link:focus {
background: transparent;
color: inherit;
}
.header-anchor {
opacity: 0;
margin-left: 0.25em;
transition: opacity 0.15s ease;
}
h1:hover > .header-anchor,
h2:hover > .header-anchor,
h3:hover > .header-anchor,
h4:hover > .header-anchor,
h5:hover > .header-anchor,
h6:hover > .header-anchor,
h1:focus-within > .header-anchor,
h2:focus-within > .header-anchor,
h3:focus-within > .header-anchor,
h4:focus-within > .header-anchor,
h5:focus-within > .header-anchor,
h6:focus-within > .header-anchor,
h1:hover .header-link .header-anchor,
h2:hover .header-link .header-anchor,
h3:hover .header-link .header-anchor,
h4:hover .header-link .header-anchor,
h5:hover .header-link .header-anchor,
h6:hover .header-link .header-anchor,
h1:focus-within .header-link .header-anchor,
h2:focus-within .header-link .header-anchor,
h3:focus-within .header-link .header-anchor,
h4:focus-within .header-link .header-anchor,
h5:focus-within .header-link .header-anchor,
h6:focus-within .header-link .header-anchor {
opacity: 1;
}
pre { pre {
background: var(--code-bg); background: var(--code-bg);
color: var(--code-fg); color: var(--code-fg);
@@ -455,9 +512,10 @@ tr:nth-child(even) {
.kewt-search-header { .kewt-search-header {
display: inline-flex; display: inline-flex;
gap: 4px; gap: 4px;
margin-left: auto; margin-left: 0;
vertical-align: middle; vertical-align: middle;
font-style: normal; font-style: normal;
flex: 0 0 auto;
} }
.kewt-search-header input[type="text"] { .kewt-search-header input[type="text"] {