From ba7fd8ed5809bb73971a9caf6c382c17782e0f60 Mon Sep 17 00:00:00 2001 From: lsof Date: Tue, 2 Sep 2025 12:03:22 +0200 Subject: makeover --- content/_index.md | 13 +++++++++++++ content/contact.md | 8 ++++++++ content/w/_index.md | 2 +- static/style.css | 22 ++++++++++++---------- templates/base.html | 8 ++++++++ templates/blog-page.html | 8 ++------ templates/blog.html | 5 +---- templates/index.html | 37 +++++-------------------------------- templates/root-page.html | 11 +++++++++++ templates/taxonomy_list.html | 3 --- templates/taxonomy_single.html | 3 --- 11 files changed, 61 insertions(+), 59 deletions(-) create mode 100644 content/_index.md create mode 100644 content/contact.md create mode 100644 templates/root-page.html diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..04fb732 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,13 @@ ++++ +title = "Home" +template = "index.html" ++++ + +Hi, I'm lemon. Welcome to my page. It's kind of barren at the moment. + +## Links +- I have a [blog](/w). +- My programming stuff is in [sourcehut](https://git.sr.ht/~lsof/), older stuff is in [github](https://github.com/lemon32767/). +- I have a [youtube channel](https://www.youtube.com/@lemon9bug). +- ![](/asset/link.png) +- [contact](/contact) diff --git a/content/contact.md b/content/contact.md new file mode 100644 index 0000000..59a8f3b --- /dev/null +++ b/content/contact.md @@ -0,0 +1,8 @@ ++++ +title = "Contact" +template = "root-page.html" ++++ + +- 🦋 i'm on bsky [@lemon.rip](https://bsky.app/profile/lemon.rip) +- my Discord username is `polyplacophora` +- you can email `contact@(this domain)` diff --git a/content/w/_index.md b/content/w/_index.md index 4ecec2e..a0393d7 100644 --- a/content/w/_index.md +++ b/content/w/_index.md @@ -1,5 +1,5 @@ +++ -title = "Writings" +title = "Posts" sort_by = "date" template = "blog.html" page_template = "blog-page.html" diff --git a/static/style.css b/static/style.css index 967c9be..f67c2c0 100644 --- a/static/style.css +++ b/static/style.css @@ -11,7 +11,7 @@ @media (prefers-color-scheme: dark) { :root { - --fg: #fff; + --fg: #cbb; --bg: #211e1f; --subtitle: #888; --pre-fg: #eaeaea; @@ -45,22 +45,21 @@ nav.navbar > a { padding: 1px 20px; background: var(--pre-bg); border: 1px solid var(--border1); - border-radius: 6px; } h1.title { line-height: 1.2; - font-size: 40px; + font-size: 1.6em; } h1 { - line-height: 1.2; - font-size: 26px; + line-height: 1; + font-size: 1.2em; } h2 { - line-height: 1.2; - font-size: 21px; + line-height: 1; + font-size: 1.2em; } p.subtitle { @@ -94,7 +93,7 @@ code { } a { - color: #d53c54;/*#e77850;*/ + color: #cc833b;/*#e77850;*/ text-decoration: none; } @@ -110,6 +109,11 @@ td,th { border: solid 1px var(--border2); } +span.date { + font-size: 80%; + +} + table { border: solid 1px var(--border1); background: var(--code-bg); @@ -122,6 +126,4 @@ p > img { text-align: center; margin-left: auto; margin-right: auto; - box-shadow: -5px -5px 8px 3px lightgray; - border-radius: 12px; } diff --git a/templates/base.html b/templates/base.html index 149831a..5276d29 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,11 +9,19 @@ +

lemon's site

+ +
{% block content %} {% endblock %}
+
+

diff --git a/templates/blog-page.html b/templates/blog-page.html index 51f8aba..8ca5835 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -4,19 +4,15 @@ {% block content %} -

{{ page.title }}

-

{{ page.date | date(format="%-d %b %Y") }}

+ {{ page.date | date(format="%-d %b %Y") }} + — {% for tag in page.taxonomies.tags %} #{{ tag }} {% endfor %}

- -
{{ page.content | safe }} {% endblock content %} diff --git a/templates/blog.html b/templates/blog.html index f8f422f..2c0b4cf 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -3,16 +3,13 @@ {% block title %}lemon's site{% endblock title %} {% block content %} -

{{ section.title }}

Browse by tags {% endblock content %} diff --git a/templates/index.html b/templates/index.html index afa923e..6fd3d1c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,40 +3,13 @@ {% block title %}lemon's site{% endblock title %} {% block content %} -

lemon's site

- +

+ {{ section.title }} +

-

-I like tool-assisted speedruns, cats, compilers, bugs, ... -

- -

links

- - - -

projects

- - -

contact

- - - -
+{{ section.content | safe }} +
diff --git a/templates/root-page.html b/templates/root-page.html new file mode 100644 index 0000000..bf837bd --- /dev/null +++ b/templates/root-page.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block title %}{{ page.title }}{% endblock title %} + +{% block content %} + +

+ {{ page.title }} +

+{{ page.content | safe }} +{% endblock content %} diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html index 084e3b5..652f4d7 100644 --- a/templates/taxonomy_list.html +++ b/templates/taxonomy_list.html @@ -3,9 +3,6 @@ {% block title %}Browse by {{taxonomy.name}}{% endblock title %} {% block content %} -

{{ taxonomy.name }}

diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html index 9f93975..497b4cb 100644 --- a/templates/taxonomy_single.html +++ b/templates/taxonomy_single.html @@ -3,9 +3,6 @@ {% block title %}#{{ term.name }}{% endblock title %} {% block content %} -

#{{ term.name }}

-- cgit v1.2.3