refactor header
This commit is contained in:
parent
6b55bdedc6
commit
a3cb5a359b
10 changed files with 79 additions and 47 deletions
|
@ -1,16 +1,14 @@
|
|||
<header>
|
||||
<div class="flex justify-between items-center">
|
||||
<h1 class="mb-5 flex items-center
|
||||
whitespace-nowrap overflow-x-auto overflow-y-hidden">
|
||||
{{ .Site.Title }}
|
||||
</h1>
|
||||
<div id="theme-switcher" class="text-4xl ml-4 cursor-pointer">{{ index .Site.Params.switch 1 }}</div>
|
||||
<header class="flex justify-between items-center sm:my-3">
|
||||
<div class="flex items-center">
|
||||
{{ if .Site.Params.brand }}
|
||||
<div class="mr-3 text-3xl"><a href="/">{{ .Site.Params.brand }}</a></div>
|
||||
{{ end }}
|
||||
<div id="theme-switcher" class="text-4xl cursor-pointer">{{ index .Site.Params.switch 1 }}</div>
|
||||
</div>
|
||||
<nav class="mb-5 flex items-center
|
||||
<nav class="flex items-center
|
||||
whitespace-nowrap overflow-x-auto overflow-y-hidden">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a class="mr-3" href="{{ .URL }}">{{ .Name }}</a>
|
||||
<a class="ml-3" href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
<hr>
|
||||
</header>
|
Loading…
Add table
Add a link
Reference in a new issue