From 2c3c6037c4eaafb69913d4a1804ea93088d3aa9e Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sat, 28 Jan 2023 15:42:36 +0100 Subject: [PATCH] add anchor offset --- _layouts/collection/collection_refpage.html | 3 ++- assets/index.css | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/_layouts/collection/collection_refpage.html b/_layouts/collection/collection_refpage.html index c0ab7fed..eea9707a 100644 --- a/_layouts/collection/collection_refpage.html +++ b/_layouts/collection/collection_refpage.html @@ -24,7 +24,8 @@ layout: content {% for item in all_items %} {% unless item == "" %} -

{{ item }}

+
+

{{ item }}

{% for plugin in site[page.collection] %} diff --git a/assets/index.css b/assets/index.css index 9918f678..855aa779 100644 --- a/assets/index.css +++ b/assets/index.css @@ -99,4 +99,11 @@ layout: empty .plugin_links { @apply mb-0 italic } + + .anchor { + display: block; + position: relative; + top: -4.5rem; + visibility: hidden; + } }