diff --git a/assets/css/common/header.css b/assets/css/common/header.css index 9b9e523d..bdbc4e36 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -1,3 +1,8 @@ +/* See: https://github.com/adityatelange/hugo-PaperMod/pull/979#issuecomment-1654974106 */ +html.header-sticky { + scroll-padding-top: calc(var(--header-height) * 2); +} + header.header-sticky { position: sticky; top: 0; diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d2de5eec..5a08ce58 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,7 +3,7 @@ {{- end -}} - + {{- partial "head.html" . }}