style for product summary / added home page link on navbar

This commit is contained in:
2023-08-26 09:18:05 +02:00
parent 2848fea893
commit 67cec28198
3 changed files with 13 additions and 12 deletions

View File

@@ -51,36 +51,37 @@ enableRobotsTXT = true
[menu] [menu]
[[menu.main]]
identifier = "homepage"
name = "Startseite"
url = "/"
weight = 1
[[menu.main]] [[menu.main]]
identifier = "products" identifier = "products"
name = "Lösungen & Produkte" name = "Lösungen & Produkte"
url = "/products/" url = "/products/"
weight = 1 weight = 2
[[menu.main]] [[menu.main]]
identifier = "blog" identifier = "blog"
name = "Neuheiten" name = "Neuheiten"
url = "/blog/" url = "/blog/"
weight = 2 weight = 3
[[menu.main]] [[menu.main]]
identifier = "about" identifier = "about"
name = "Über mich" name = "Über mich"
url = "/about/" url = "/about/"
weight = 3 weight = 4
[[menu.main]] [[menu.main]]
identifier = "contact" identifier = "contact"
name = "Kontakt" name = "Kontakt"
url = "/contact/" url = "/contact/"
weight = 4 weight = 5
# Footer Menu # Footer Menu
[[menu.footer]]
name = "Home"
url = "/"
weight = 1
[[menu.footer]] [[menu.footer]]
name = "Impressum & Datenschutzerklärung" name = "Impressum & Datenschutzerklärung"
url = "/impressum-datenschutzerklaerung" url = "/impressum-datenschutzerklaerung"

View File

@@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
<div class="mx-auto my-10 max-w-6xl"> <div class="mx-auto my-10 max-w-6xl">
<div class="mx-3 col-span-3 lg:col-span-2 px-2"> <div class="mx-3 col-span-3 lg:col-span-2 px-2">
<h1 class="title text-5xl mb-4">{{.Title}}</h1> <h1 class="title text-5xl mb-4 text-white-custom">{{.Title}}</h1>
<div class="content py-1">{{.Content}}</div> <div class="content py-1">{{.Content}}</div>
<div class="grid grid-cols-1 md:grid-cols-2 mb-2 gap-2"> <div class="grid grid-cols-1 md:grid-cols-2 mb-2 gap-2">
{{ range .Pages.ByWeight }} {{ range .Pages.ByWeight }}

View File

@@ -8,11 +8,11 @@
</style> </style>
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<div class="summary border p-3"> <div class="summary border p-3 border-green-custom">
<h2 class="text-3xl title-product-summary"> <h2 class="text-3xl title-product-summary">
{{ .Title }} {{ .Title }}
</h2> </h2>
<img src="{{ .Params.image | relURL }}" alt="-product-image-"> <img src="{{ .Params.image | relURL }}" alt="-product-image-">
<p class="description-product-summary">{{ .Description }}</p> <p class="description-product-summary text-white-custom">{{ .Description }}</p>
</div> </div>
</a> </a>