From 8af1ea92d138b221ad283d2e9771bf67ab38a55a Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 23 Feb 2025 07:29:30 +0100 Subject: Added bookmarks --- templates/base.html | 7 +++++-- templates/bookmarks.html | 10 ++++++++++ templates/index.html | 4 ++-- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 templates/bookmarks.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index ff39b57..5c0ff32 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,13 +19,15 @@ code { background: #f5f5f5; } table { width: 100%; } figure { margin: 0; } - .flow { max-width: 1100px; column-count: 2; column-gap: 1em; } + .flow-two-column > ul { max-width: 1100px; column-count: 2; column-gap: 1em; } + .flow-three-column > ul { max-width: 1100px; column-count: 3; column-gap: 1em; } .tags { display: inline-flex; gap: 0.2em; padding-right: 0.2em; font-family: monospace; } .tags mark { padding: 0 0.2em; font-size: small; } @media only screen and (max-width: 860px) { body { display: block; } main { margin: 1em 0; } - .flow { column-count: 1; } + .flow-two-column > ul { column-count: 1; } + .flow-three-column > ul { column-count: 1; } .hide-on-mobile { display: none; } } /* Fixes embeds going to center. */ @@ -46,6 +48,7 @@
  • Code on GitHub
  • Probe repository
  • My dotfiles
  • +
  • Bookmarks
  • Curriculum Vitae
  • RSS Feed
  • diff --git a/templates/bookmarks.html b/templates/bookmarks.html new file mode 100644 index 0000000..edf137b --- /dev/null +++ b/templates/bookmarks.html @@ -0,0 +1,10 @@ +{{ template "base.html" . }} + +{{ define "content" }} +
    +
    +

    {{ .Page.Title }}

    +
    +
    {{ .Page.HTML }}
    +
    +{{ end }} diff --git a/templates/index.html b/templates/index.html index be725f5..6c87f72 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,9 +15,9 @@ -
    +

    Notes, post and other stuff

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