From becc16e997697fdd00a000e556df9ffb2a6fc068 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 22 Feb 2025 19:41:47 +0100 Subject: Changed listing on index --- templates/base.html | 4 ++-- templates/index.html | 35 +++++++++++------------------------ 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/templates/base.html b/templates/base.html index 7d9ab07..aff281e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,11 +19,11 @@ code { background: #f5f5f5; } table { width: 100%; } figure { margin: 0; } - .two-columns { display: flex; gap: 3em; } + .flow { max-width: 1100px; column-count: 2; column-gap: 20px; } @media only screen and (max-width: 720px) { body { display: block; } main { margin: 1em 0; } - .two-columns { display: block; } + .flow { column-count: 1; } .hide-on-mobile { display: none; } } /* Fixes embeds going to center. */ diff --git a/templates/index.html b/templates/index.html index f2bfdff..4e8eb56 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,32 +15,19 @@ -
-
-

Notes?! Maybe useful

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

More long form, ramblings etc

-
    - - {{ range .Pages }} - {{ if and (eq .Type "post") (not .Draft) }} -
  • {{ .Title }}
  • - {{ end }} - {{ end }} -
-
+ {{ end }} +
-- cgit v1.2.3