start working on styling for when a nav item is the current page, remove social buttons

This commit is contained in:
brooke 2024-05-24 01:45:43 -04:00
parent 0705dcc8a0
commit 23c3cf8c5e
3 changed files with 12 additions and 5 deletions

View file

@ -1,13 +1,20 @@
<div class="p-4 flex flex-row w-full justify-between bg-black">
<a href="/"><img class="w-44 h-auto" src="{{ .Site.Params.logo }}" /></a>
<nav class="place-self-center h-8 flex justify-end gap-2 text-white pr-6">
{{ range .Site.Menus.main }}
{{ range .Site.Menus.main }} {{ if $.IsMenuCurrent .Menu . }}
<a
class="ml-2 underline underline-offset-0 decoration-2 decoration-transparent decoration-white underline-offset-2 place-self-center"
href="{{ .URL }}"
>
{{ $text := print .Name | safeHTML }} {{ $text }}
</a>
{{ else }}
<a
class="ml-2 underline underline-offset-0 decoration-2 decoration-transparent hover:decoration-white hover:underline-offset-2 ease-in-out duration-300 place-self-center"
href="{{ .URL }}"
>
{{ $text := print .Name | safeHTML }} {{ $text }}
</a>
{{ end }}
{{ end }} {{ end }}
</nav>
</div>

View file

@ -1,4 +1,4 @@
<span id="social">
{{/* <span id="social">
<i data-feather="share-2"></i></a>
<a href="https://twitter.com/share?url={{ .Permalink }}&text={{ .Title }}&via={{ .Site.Social.twitter }}"
class="btn btn-sm btn-outline-dark share-btn" data-show-count="false" aria-label="Share on Twitter">
@ -6,4 +6,4 @@
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ .Permalink }}&summary={{ .Summary | plainify }}&source=Retrolog.io"
class="btn btn-sm btn-outline-dark share-btn" data-show-count="false" aria-label="Share on LinkedIn">
<i class="feather-16" data-feather="linkedin"></i></a>
</span>
</span> */}}

File diff suppressed because one or more lines are too long