diff options
| author | 2025-09-02 12:03:22 +0200 | |
|---|---|---|
| committer | 2025-09-02 12:03:22 +0200 | |
| commit | ba7fd8ed5809bb73971a9caf6c382c17782e0f60 (patch) | |
| tree | 2208034b63b8f23c3122ebcaf659f991e48b25b4 | |
| parent | 04cdbbb8fd99fa3cb113106f6a83560cc0463a39 (diff) | |
makeover
| -rw-r--r-- | content/_index.md | 13 | ||||
| -rw-r--r-- | content/contact.md | 8 | ||||
| -rw-r--r-- | content/w/_index.md | 2 | ||||
| -rw-r--r-- | static/style.css | 22 | ||||
| -rw-r--r-- | templates/base.html | 8 | ||||
| -rw-r--r-- | templates/blog-page.html | 8 | ||||
| -rw-r--r-- | templates/blog.html | 5 | ||||
| -rw-r--r-- | templates/index.html | 37 | ||||
| -rw-r--r-- | templates/root-page.html | 11 | ||||
| -rw-r--r-- | templates/taxonomy_list.html | 3 | ||||
| -rw-r--r-- | templates/taxonomy_single.html | 3 |
11 files changed, 61 insertions, 59 deletions
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). +-  +- [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 @@ </head> <body> + <h1 class="title">lemon's site</h1> + <nav class="navbar"> + <a href="/">home</a> + <a href="/w">blog</a> + </nav> + <hr> <section class="section"> <div class="container"> {% block content %} {% endblock %} </div> </section> + <hr> + <br><br> </body> </html> 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 %} -<nav class="navbar"> - <a href="/">Home</a> -</nav> <h1 class="title"> {{ page.title }} </h1> -<p class="subtitle">{{ page.date | date(format="%-d %b %Y") }}</p> <p class="subtitle"> + {{ page.date | date(format="%-d %b %Y") }} + — {% for tag in page.taxonomies.tags %} <a href="/tags/{{ tag | safe}}">#{{ tag }}</a> {% endfor %} </p> - -<hr> {{ 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 %} -<nav class="navbar"> - <a href="/">Home</a> -</nav> <h1 class="title"> {{ section.title }} </h1> Browse by <a href="/tags">tags</a> <ul> {% for page in section.pages %} - <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li> + <li><span class="date">{{ page.date | date(format="%Y-%m-%d") }}</span> <a href="{{ page.permalink | safe }}">{{ page.title }}</a></li> {% endfor %} </ul> {% 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 %} -<h1 class="title">lemon's site</h1> -<img width="256" src="/asset/moth.png"> +<h1 class="title"> + {{ section.title }} +</h1> -<p> -I like tool-assisted speedruns, cats, compilers, bugs, ... -</p> - -<h3>links</h3> - -<ul> -<li><a href="/w">writings/blog</a> (last updated on {{ get_section(path="w/_index.md") | get(key="pages") | map(attribute="date") | first }}) -<li><a href="https://git.sr.ht/~lsof/">git</a> -<li><img src="/asset/link.png" width="18" height="23"> -<li><a href="https://www.youtube.com/channel/UCoZ8JbiXlq_Zh0DGvaGRTDQ">youtube</a> -<li><a href="https://github.com/lemon32767">github (abandoned)</a> -</ul> - -<h3>projects</h3> -<ul> -<li><a href="https://github.com/lemon32767/ccleste/">ccleste</a> - a C source port of the PICO-8 game Celeste -<li><a href="/mips.html">web MIPS assembler/disassembler</a> (incomplete) -<li><a href="https://git.sr.ht/~lsof/cff">cff</a> - experimental systems programming language -<!--li><a href="https://git.sr.ht/~lsof/pez">pez</a> - toy embeddable programming language<--!> -</ul> - -<h3>contact</h3> - -<ul> -<li><code>lemon·#4203</code> on discord -<li>you can email me to say hi at <code>lsof@mailbox.org</code> -</ul> - -<hr> +{{ section.content | safe }} +<br> <img src="/asset/pommy.png"> <img src="/asset/lynx.png"> <img src="/asset/linux.png"> 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 %} + +<h1 class="title"> + {{ page.title }} +</h1> +{{ 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 %} -<nav class="navbar"> - <a href="/">Home</a> <!--a href="../">Go Back</a--!> -</nav> <h1 class="title"> {{ taxonomy.name }} </h1> 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 %} -<nav class="navbar"> - <a href="/">Home</a> <!--a href="../">Go Back</a--!> -</nav> <h1 class="title"> #{{ term.name }} </h1> |