Skip to content

Commit

Permalink
🐛Fix the anchor point being blocked by the navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice-Hazymoon committed Jan 30, 2023
1 parent e1a4109 commit d7cc9c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions layouts/partials/html/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<header class="{{- if .Site.Params.fixedNav -}} fixed z-10 backdrop-blur-md bg-white/80 dark:bg-darkFg mx-auto w-full md:max-w-4xl xl:max-w-4xl 2xl:max-w-4xl {{- else -}} relative {{- end -}}">
{{- if .Site.Params.fixedNav -}}
<style>
.typo h1, .typo h2, .typo h3, .typo h4, .typo h5, .typo h6 {
scroll-margin-top: 100px;
}
</style>
{{- end -}}

{{- if .Site.Params.topTitle -}}
<div class=" text-center py-6 border-b dark:border-darkBorder">
{{- with .Site.Title -}}<div class="text-3xl">{{- . -}}</div>{{- end -}}
Expand Down

0 comments on commit d7cc9c2

Please sign in to comment.