start working on styling for when a nav item is the current page, remove social buttons
This commit is contained in:
parent
0705dcc8a0
commit
23c3cf8c5e
3 changed files with 12 additions and 5 deletions
|
@ -1,13 +1,20 @@
|
||||||
<div class="p-4 flex flex-row w-full justify-between bg-black">
|
<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>
|
<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">
|
<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
|
<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"
|
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 }}"
|
href="{{ .URL }}"
|
||||||
>
|
>
|
||||||
{{ $text := print .Name | safeHTML }} {{ $text }}
|
{{ $text := print .Name | safeHTML }} {{ $text }}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }} {{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<span id="social">
|
{{/* <span id="social">
|
||||||
<i data-feather="share-2"></i></a>
|
<i data-feather="share-2"></i></a>
|
||||||
<a href="https://twitter.com/share?url={{ .Permalink }}&text={{ .Title }}&via={{ .Site.Social.twitter }}"
|
<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">
|
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"
|
<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">
|
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>
|
<i class="feather-16" data-feather="linkedin"></i></a>
|
||||||
</span>
|
</span> */}}
|
2
themes/gallo/static/css/tailwind.min.css
vendored
2
themes/gallo/static/css/tailwind.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue