From 7f2b61fb1f913a39145ff2dddecaefae14cfbc1a Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger <janerik@fnordig.de> Date: Tue, 11 Mar 2025 15:51:04 +0100 Subject: [PATCH] add an arrow to jump to the top --- posts.liquid | 6 ++++-- style.css | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/posts.liquid b/posts.liquid index bf7930e..b1fa4a3 100644 --- a/posts.liquid +++ b/posts.liquid @@ -48,8 +48,10 @@ data: <table> {% for year in years -%} <tr> - <td> </td> - <td><h2>{{year}}</h2></td> + <td class="top"> + <a href="#top">↑</a></td> + <td> + <h2 id="{{year}}">{{year}}</h2></td> </tr> {%- for post in collections.posts.pages %} diff --git a/style.css b/style.css index ea00cfd..6e5042f 100644 --- a/style.css +++ b/style.css @@ -359,3 +359,10 @@ table, tr, td { border: none; } pointer-events: none; z-index: 1; } + +.top { + text-align: center; +} +.top a, .top a:visited { + text-decoration: none; +}