From 80954de8bd085a3d5876e86c878088f911307c52 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 5 Dec 2020 20:16:04 +0530 Subject: [PATCH] anchored-headings: retain anchor link '#' in URL close: #108 --- assets/css/reset.css | 9 ++++++++- layouts/_default/baseof.html | 2 +- layouts/partials/footer.html | 8 ++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/assets/css/reset.css b/assets/css/reset.css index 96409248..5eb1d1e7 100644 --- a/assets/css/reset.css +++ b/assets/css/reset.css @@ -5,7 +5,14 @@ } html { - -webkit-tap-highlight-color: transparent + -webkit-tap-highlight-color: transparent; + scroll-behavior: smooth +} + +@media screen and (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto + } } a, diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6036e194..183d1a76 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,7 +12,7 @@ {{- if eq $.Site.Params.defaultTheme `dark` -}} {{- print " dark" }} {{- end -}} -" id="top"> +"> {{- partialCached "header.html" . .Page}}
{{- block "main" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3af71053..76d8e497 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -9,7 +9,7 @@ · Theme PaperMod - +