From 2a0ca59309b2b7aa9631fa2f3ed9f12254e166bb Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Wed, 4 May 2022 14:18:32 +0300 Subject: [PATCH 1/2] Add heading copy link --- source/_views/post.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/_views/post.html b/source/_views/post.html index d2541884..4fe6605f 100644 --- a/source/_views/post.html +++ b/source/_views/post.html @@ -37,3 +37,22 @@

{{ page.title|raw }}

{% endblock %} + +{% block head_scripts %} + +{% endblock %} + +{% block scripts %} + +{% endblock %} From 42a7f10d6c06fab41f9871ec178a803babbb0abd Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Thu, 5 May 2022 16:37:29 +0300 Subject: [PATCH 2/2] fix the compatibility with the sticky menu --- assets/css/app.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assets/css/app.css b/assets/css/app.css index 80d4dc65..7dd952aa 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -123,6 +123,18 @@ } } +:target { + scroll-margin-top: 64px; +} + +:target::before { + content: ""; + display: block; + margin-top: -64px; + height: 64px; + width: 1px; +} + .footer-link { background-image: linear-gradient(180deg, #fff 100%, transparent 0); background-size: auto 0;