diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-02-22 19:41:47 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-02-22 19:41:47 +0100 |
| commit | becc16e997697fdd00a000e556df9ffb2a6fc068 (patch) | |
| tree | 69c571763a94d53bf472d3ac8117d0b5fddbdf45 | |
| parent | 8eaf5920bea9d3920ba1de20a1bb82bb7cc88347 (diff) | |
| download | mitjafelicijan.com-becc16e997697fdd00a000e556df9ffb2a6fc068.tar.gz | |
Changed listing on index
| -rw-r--r-- | templates/base.html | 4 | ||||
| -rw-r--r-- | 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 @@ | |||
| 19 | code { background: #f5f5f5; } | 19 | code { background: #f5f5f5; } |
| 20 | table { width: 100%; } | 20 | table { width: 100%; } |
| 21 | figure { margin: 0; } | 21 | figure { margin: 0; } |
| 22 | .two-columns { display: flex; gap: 3em; } | 22 | .flow { max-width: 1100px; column-count: 2; column-gap: 20px; } |
| 23 | @media only screen and (max-width: 720px) { | 23 | @media only screen and (max-width: 720px) { |
| 24 | body { display: block; } | 24 | body { display: block; } |
| 25 | main { margin: 1em 0; } | 25 | main { margin: 1em 0; } |
| 26 | .two-columns { display: block; } | 26 | .flow { column-count: 1; } |
| 27 | .hide-on-mobile { display: none; } | 27 | .hide-on-mobile { display: none; } |
| 28 | } | 28 | } |
| 29 | /* Fixes embeds going to center. */ | 29 | /* 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 @@ | |||
| 15 | </div> | 15 | </div> |
| 16 | </div> | 16 | </div> |
| 17 | 17 | ||
| 18 | <section class="two-columns"> | 18 | <section> |
| 19 | <div> | 19 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" class="flow"> |
| 20 | <h2>Notes?! Maybe useful</h2> | 20 | {{ range .Pages }} |
| 21 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Notes?! Maybe useful"> | 21 | {{ if and (not .Draft) (or (eq .Type "note") (eq .Type "post")) }} |
| 22 | <meta itemprop="name" content="Notes?! Maybe useful"> | 22 | <li> |
| 23 | {{ range .Pages }} | 23 | {{ if eq .Type "note" }} |
| 24 | {{ if and (eq .Type "note") (not .Draft) }} | 24 | {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} |
| 25 | <li> | ||
| 26 | {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} | ||
| 27 | <a href="{{ .RelPermalink }}">{{ .Title }}</a> | ||
| 28 | </li> | ||
| 29 | {{ end }} | 25 | {{ end }} |
| 26 | <a href="{{ .RelPermalink }}">{{ .Title }}</a> | ||
| 27 | </li> | ||
| 30 | {{ end }} | 28 | {{ end }} |
| 31 | </ul> | 29 | {{ end }} |
| 32 | </div> | 30 | </ul> |
| 33 | <div> | ||
| 34 | <h2>More long form, ramblings etc</h2> | ||
| 35 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="More long form, ramblings etc"> | ||
| 36 | <meta itemprop="name" content="More long form, ramblings etc"> | ||
| 37 | {{ range .Pages }} | ||
| 38 | {{ if and (eq .Type "post") (not .Draft) }} | ||
| 39 | <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> | ||
| 40 | {{ end }} | ||
| 41 | {{ end }} | ||
| 42 | </ul> | ||
| 43 | </div> | ||
| 44 | </section> | 31 | </section> |
| 45 | 32 | ||
| 46 | <div> | 33 | <div> |
