aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-02-23 07:29:30 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-02-23 07:29:30 +0100
commit8af1ea92d138b221ad283d2e9771bf67ab38a55a (patch)
treed0bd05293f438b5ebac95902c6842257cc0a8abf /templates
parent4b534dd48131b3e04336e61c66556afe59f5fc2a (diff)
downloadmitjafelicijan.com-8af1ea92d138b221ad283d2e9771bf67ab38a55a.tar.gz
Added bookmarks
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html7
-rw-r--r--templates/bookmarks.html10
-rw-r--r--templates/index.html4
3 files changed, 17 insertions, 4 deletions
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 @@
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 .flow { max-width: 1100px; column-count: 2; column-gap: 1em; } 22 .flow-two-column > ul { max-width: 1100px; column-count: 2; column-gap: 1em; }
23 .flow-three-column > ul { max-width: 1100px; column-count: 3; column-gap: 1em; }
23 .tags { display: inline-flex; gap: 0.2em; padding-right: 0.2em; font-family: monospace; } 24 .tags { display: inline-flex; gap: 0.2em; padding-right: 0.2em; font-family: monospace; }
24 .tags mark { padding: 0 0.2em; font-size: small; } 25 .tags mark { padding: 0 0.2em; font-size: small; }
25 @media only screen and (max-width: 860px) { 26 @media only screen and (max-width: 860px) {
26 body { display: block; } 27 body { display: block; }
27 main { margin: 1em 0; } 28 main { margin: 1em 0; }
28 .flow { column-count: 1; } 29 .flow-two-column > ul { column-count: 1; }
30 .flow-three-column > ul { column-count: 1; }
29 .hide-on-mobile { display: none; } 31 .hide-on-mobile { display: none; }
30 } 32 }
31 /* Fixes embeds going to center. */ 33 /* Fixes embeds going to center. */
@@ -46,6 +48,7 @@
46 <li><a href="https://github.com/mitjafelicijan" target="_blank">Code on GitHub</a></li> 48 <li><a href="https://github.com/mitjafelicijan" target="_blank">Code on GitHub</a></li>
47 <li><a href="https://github.com/mitjafelicijan/probe" target="_blank">Probe repository</a></li> 49 <li><a href="https://github.com/mitjafelicijan/probe" target="_blank">Probe repository</a></li>
48 <li class="hide-on-mobile"><a href="https://github.com/mitjafelicijan/dotfiles" target="_blank">My dotfiles</a></li> 50 <li class="hide-on-mobile"><a href="https://github.com/mitjafelicijan/dotfiles" target="_blank">My dotfiles</a></li>
51 <li><a href="/bookmarks.html">Bookmarks</a></li>
49 <li><a href="/curriculum-vitae.html">Curriculum Vitae</a></li> 52 <li><a href="/curriculum-vitae.html">Curriculum Vitae</a></li>
50 <li class="hide-on-mobile"><a href="/feed.xml">RSS Feed</a></li> 53 <li class="hide-on-mobile"><a href="/feed.xml">RSS Feed</a></li>
51 </ul> 54 </ul>
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 @@
1{{ template "base.html" . }}
2
3{{ define "content" }}
4<article>
5 <hgroup>
6 <h1>{{ .Page.Title }}</h1>
7 </hgroup>
8 <div class="flow-two-column">{{ .Page.HTML }}</div>
9</article>
10{{ 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 @@
15 </div> 15 </div>
16</div> 16</div>
17 17
18<section> 18<section class="flow-two-column">
19 <h1>Notes, post and other stuff</h1> 19 <h1>Notes, post and other stuff</h1>
20 <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" class="flow"> 20 <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list">
21 {{ range .Pages }} 21 {{ range .Pages }}
22 {{ if and (not .Draft) (or (eq .Type "note") (eq .Type "post")) }} 22 {{ if and (not .Draft) (or (eq .Type "note") (eq .Type "post")) }}
23 <li> 23 <li>