This commit is contained in:
parent
7ef529c1db
commit
ae5dfa8cb6
5 changed files with 19 additions and 16 deletions
21
config.yaml
21
config.yaml
|
@ -4,19 +4,18 @@ theme: mir
|
||||||
|
|
||||||
menus:
|
menus:
|
||||||
main:
|
main:
|
||||||
- identifier: about
|
# - identifier: about
|
||||||
name: About us
|
# name: About us
|
||||||
url: /about/
|
# url: /about/
|
||||||
weight: 1
|
# weight: 1
|
||||||
- identifier: projects
|
# - identifier: projects
|
||||||
name: Projects
|
# name: Projects
|
||||||
url: /projects/
|
# url: /projects/
|
||||||
weight: 2
|
# weight: 2
|
||||||
- identifier: contact
|
- identifier: contact
|
||||||
name: Contact
|
name: Get in Contact!
|
||||||
url: /contact/
|
url: /contact/
|
||||||
weight: 3
|
weight: 1
|
||||||
|
|
||||||
disableKinds:
|
disableKinds:
|
||||||
- taxonomy
|
- taxonomy
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
|
|
|
@ -5,8 +5,11 @@
|
||||||
<p class="text-4xl font-bold">{{ .Title }}</p>
|
<p class="text-4xl font-bold">{{ .Title }}</p>
|
||||||
<p class="text-lg">{{ .Params.subTitle }}</p>
|
<p class="text-lg">{{ .Params.subTitle }}</p>
|
||||||
{{ partial "metadata.html" . }}
|
{{ partial "metadata.html" . }}
|
||||||
|
{{ if .contact }}
|
||||||
|
{{ partial "metadata.html" . }}
|
||||||
|
{{ else }}
|
||||||
<div class="mt-2 flex flex-col gap-4">{{ .Content }}</div>
|
<div class="mt-2 flex flex-col gap-4">{{ .Content }}</div>
|
||||||
{{ partial "buttons.html" . }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
0
themes/mir/layouts/partials/contact.html
Normal file
0
themes/mir/layouts/partials/contact.html
Normal file
|
@ -5,10 +5,11 @@
|
||||||
alt="{{ .Params.logoAlt }}" src="{{ .Params.logo }}" loading="lazy" /></a>
|
alt="{{ .Params.logoAlt }}" src="{{ .Params.logo }}" loading="lazy" /></a>
|
||||||
<nav class="place-self-center h-8 flex justify-end gap-4 text-[#464f6d] pr-0 sm:pr-6">
|
<nav class="place-self-center h-8 flex justify-end gap-4 text-[#464f6d] pr-0 sm:pr-6">
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<a style="white-space: nowrap"
|
<a class="relative inline-block p-2 -translate-y-1 font-bold py-2 text-gray-900 overflow-hidden group" href="{{ .URL }}"
|
||||||
class="underline underline-offset-0 decoration-2 decoration-transparent hover:decoration-white hover:underline-offset-2 ease-in-out duration-300 place-self-center"
|
aria-label="{{ .Identifier }}">
|
||||||
href="{{ .URL }}" aria-label="{{ .Identifier }}">
|
|
||||||
{{ $text := print .Name | safeHTML }} {{ $text }}
|
{{ $text := print .Name | safeHTML }} {{ $text }}
|
||||||
|
<span
|
||||||
|
class="absolute inset-0 h-7 translate-y-2 bg-[#d8e2f3] transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0 z-[-1]"></span>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
2
themes/mir/static/css/tailwind.min.css
vendored
2
themes/mir/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