From 67a6fe21f37f8644e7ef45028168b1e4932ac654 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 19 Sep 2025 23:22:30 +0200 Subject: Cleaned up theme --- content/pages/projects.md | 11 --- templates/base.html | 171 +++++++++++++++++----------------------------- templates/index.html | 62 ++++++++--------- templates/note.html | 31 ++------- templates/post.html | 31 ++------- tools/github-projects.py | 18 ++--- 6 files changed, 115 insertions(+), 209 deletions(-) diff --git a/content/pages/projects.md b/content/pages/projects.md index cabde1d..6680b7d 100644 --- a/content/pages/projects.md +++ b/content/pages/projects.md @@ -391,14 +391,3 @@ Xmagnify is a real-time screen magnification tool for X11 systems that provides ![](/assets/general/github.svg)[mitjafelicijan/xmagnify](https://github.com/mitjafelicijan/xmagnify) - - - - - diff --git a/templates/base.html b/templates/base.html index d449492..ccbf4f4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,150 +11,105 @@ - + +
-
- - - -
+
-
+
{{ block "content" . }}{{ end }}
- - diff --git a/templates/index.html b/templates/index.html index 60f4107..36b828d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,41 +4,33 @@

Notes / Posts

- - - - - - - - - - - {{ range .Pages }} - {{ if and (not .Draft) (or (eq .Type "note") (eq .Type "post")) }} - - - - - - - {{ end }} - {{ end }} - -
DateTitle
- {{ if (eq .Type "note") }} - - - - {{ end }} - {{ .Title }} - {{ if .Meta.tags }} - {{ range .Meta.tags }}{{ . }}{{ end }} - {{ end }} -
+
    + {{ range .Pages }} + {{ if and (not .Draft) (or (eq .Type "note") (eq .Type "post")) }} +
  • + + + + {{ if (eq .Type "note") }} + + {{ end }} + + + + {{ .Title }} + + {{ if .Meta.tags }} + {{ range .Meta.tags }}{{ . }}{{ end }} + {{ end }} + + +
  • + {{ end }} + {{ end }} +
-
+

Tools / Experiments

@@ -64,6 +56,10 @@ + + + + diff --git a/templates/note.html b/templates/note.html index 939fdfa..ea73b99 100644 --- a/templates/note.html +++ b/templates/note.html @@ -15,30 +15,13 @@

Other notes

-
GGUF model list & tools https://mitjafelicijan.github.io/gguf-list/
Soundscapes boardhttps://mitjafelicijan.github.io/soundscapes/
Maps of DOOM and other well known WADS https://mitjafelicijan.github.io/mapsofdoom/
- - - - - - - - - {{ range .Pages | filterbytype "note" | random 15 }} - {{ if not .Draft }} - - - - - - {{ end }} - {{ end }} - -
DateTitle
{{ .Title }} - {{ if .Meta.tags }} - {{ range .Meta.tags }}{{ . }}{{ end }} - {{ end }} -
+
{{ if .Page.Meta.mathjax }} diff --git a/templates/post.html b/templates/post.html index 297b18f..58a0406 100644 --- a/templates/post.html +++ b/templates/post.html @@ -15,30 +15,13 @@

Other posts

- - - - - - - - - - {{ range .Pages | filterbytype "post" | random 15 }} - {{ if not .Draft }} - - - - - - {{ end }} - {{ end }} - -
DateTitle
{{ .Title }} - {{ if .Meta.tags }} - {{ range .Meta.tags }}{{ . }}{{ end }} - {{ end }} -
+
{{ if .Page.Meta.mathjax }} diff --git a/tools/github-projects.py b/tools/github-projects.py index ff890f6..bf3f9dc 100644 --- a/tools/github-projects.py +++ b/tools/github-projects.py @@ -58,15 +58,15 @@ def generate_markdown_file(include_repositories): file.write("") file.write(DOUBLE_NL) - file.write(DOUBLE_NL) - file.write("") - file.write(DOUBLE_NL) + # file.write(DOUBLE_NL) + # file.write("") + # file.write(DOUBLE_NL) file.close() -- cgit v1.2.3