mirror of https://github.com/jpanther/congo.git
🚸 Make main menu optional
parent
586224fc7a
commit
07562ee7d4
|
@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
- Slate colour scheme ([#9](https://github.com/jpanther/congo/pull/9))
|
- Slate colour scheme ([#9](https://github.com/jpanther/congo/pull/9))
|
||||||
- Icons for ORCID and ResearchGate ([#9](https://github.com/jpanther/congo/pull/9))
|
- Icons for ORCID and ResearchGate ([#9](https://github.com/jpanther/congo/pull/9))
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Main menu is now optional
|
||||||
|
|
||||||
## [1.3.0] - 2021-09-29
|
## [1.3.0] - 2021-09-29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<header
|
<header
|
||||||
class="flex justify-between py-6 font-semibold sm:items-center sm:py-10 text-neutral-800 dark:text-neutral"
|
class="flex justify-between py-6 font-semibold sm:items-center sm:py-10 text-neutral-800 dark:text-neutral"
|
||||||
>
|
>
|
||||||
|
{{/* Site logo/title */}}
|
||||||
<div>
|
<div>
|
||||||
{{ if .Site.Params.Logo -}}
|
{{ if .Site.Params.Logo -}}
|
||||||
{{ $logo := resources.Get .Site.Params.Logo }}
|
{{ $logo := resources.Get .Site.Params.Logo }}
|
||||||
|
@ -21,18 +22,21 @@
|
||||||
>
|
>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
<nav>
|
{{/* Main menu */}}
|
||||||
<ul class="flex flex-col list-none sm:flex-row">
|
{{ if .Site.Menus.main }}
|
||||||
{{ range .Site.Menus.main }}
|
<nav>
|
||||||
<li class="mb-1 text-right sm:mb-0 sm:mr-7 sm:last:mr-0">
|
<ul class="flex flex-col list-none sm:flex-row">
|
||||||
<a
|
{{ range .Site.Menus.main }}
|
||||||
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
<li class="mb-1 text-right sm:mb-0 sm:mr-7 sm:last:mr-0">
|
||||||
href="{{ .URL }}"
|
<a
|
||||||
title="{{ .Title }}"
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
||||||
>{{ .Name }}</a
|
href="{{ .URL }}"
|
||||||
>
|
title="{{ .Title }}"
|
||||||
</li>
|
>{{ .Name }}</a
|
||||||
{{ end }}
|
>
|
||||||
</ul>
|
</li>
|
||||||
</nav>
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in New Issue