Skip to content

Commit

Permalink
break element
Browse files Browse the repository at this point in the history
  • Loading branch information
ntk148v committed Aug 30, 2024
1 parent f6cebe1 commit 398ff8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/nav-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ol>
</nav>
<nav>
<ul class="flex text-md space-x-3 sm:space-x-6">
<ul class="flex text-md break-keep sm:space-x-6">
{{ range $.Site.Menus.nav }}
<li class="text-text">
<a
Expand All @@ -27,9 +27,9 @@
{{ else if not .p1.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }}
{{ $attr := "text-muted focus:underline focus:outline-none after:md:mx-2 after:mx-0.5" }}
{{ $attr := "text-muted focus:underline focus:outline-none p-0.5 break-keep" }}
{{ if eq .p1 .p2 }}
{{ $attr = "focus:underline focus:outline-none font-bold after:md:mx-2 after:mx-0.5" }}
{{ $attr = "focus:underline focus:outline-none font-bold p-0.5 break-words" }}
{{ end }}
<li>
{{ $title := .p1.Title }}
Expand Down

0 comments on commit 398ff8f

Please sign in to comment.