This commit is contained in:
@@ -58,8 +58,8 @@
|
||||
{{ with .PrevInSection }}
|
||||
<a class="previous lg:text-2xl" href="{{.Permalink}}">
|
||||
<div
|
||||
class="transition-colors duration-300 border border-gray-600 hover:border-black h-auto m-3 text-center py-3 lg:py-1">
|
||||
<span class="icon-keyboard_arrow_left"></span> {{.Title}}
|
||||
class="transition-colors duration-300 border border-gray-600 border-gray-hover h-auto m-3 text-center py-3 lg:py-1">
|
||||
Vorherige: "{{.Title}}"<br><span class="icon-keyboard_arrow_left"></span>
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
@@ -67,8 +67,8 @@
|
||||
{{ with .NextInSection }}
|
||||
<a class="next lg:text-2xl" href="{{.Permalink}}">
|
||||
<div
|
||||
class="transition-colors duration-300 col-span-1 border border-gray-600 hover:border-black h-auto m-3 text-center py-3 lg:py-1">
|
||||
{{.Title}} <span class="icon-keyboard_arrow_right"></span>
|
||||
class="transition-colors duration-300 col-span-1 border border-gray-600 border-gray-hover h-auto m-3 text-center py-3 lg:py-1">
|
||||
Nächste: "{{.Title}}"<br><span class="icon-keyboard_arrow_right"></span>
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
{{ define "meta_tags" }}
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:locale" content="ja_JP" />
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:title" content="{{ .Title }}">
|
||||
|
||||
{{ if .Params.image }}
|
||||
{{ with .Params.image }}
|
||||
<meta property="og:image" content="{{ . | absURL }}">
|
||||
<meta property="og:image:url" content="{{ . | absURL }}">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<meta property="og:image" content="{{ .Site.Params.homepage_meta_tags.meta_og_image | absURL }}">
|
||||
<meta property="og:image:url" content="{{ .Site.Params.homepage_meta_tags.meta_og_image | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{- if .Description }}
|
||||
<meta property="og:description" content="{{ .Description }}" />
|
||||
<meta property="twitter:description" content="{{ .Description }}" />
|
||||
{{- else if .Summary }}
|
||||
<meta property="og:description" content="{{ .Summary }}" />
|
||||
<meta property="twitter:description" content="{{ .Summary }}" />
|
||||
{{- else if .Site.Params.description }}
|
||||
<meta property="og:description" content="{{ .Site.Params.description }}" />
|
||||
<meta property="twitter:description" content="{{ .Site.Params.description }}" />
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<div class="mx-auto my-10 max-w-6xl">
|
||||
<div class="mx-3 col-span-3 lg:col-span-2 px-2">
|
||||
<h1 class="title text-5xl mb-4 text-white">{{.Title}}</h1>
|
||||
<hr style="border-color: #00ad8e;">
|
||||
<div class="content py-1 text-white">{{.Content}}</div>
|
||||
|
||||
<!-- Hier filtern wir nun die Blogartikel nach dem Tag 'event' -->
|
||||
{{ $filteredPages := where (where .Site.RegularPages "Section" "blog") "Params.tags" "intersect" (slice "event") }}
|
||||
|
||||
<!-- Paginator für die gefilterten Seiten (6 Artikel pro Seite) -->
|
||||
{{ $paginator := .Paginate $filteredPages 6 }}
|
||||
|
||||
{{ range $paginator.Pages }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<div>{{ partial "summary.html" . }}</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "paginator.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -22,7 +22,7 @@
|
||||
</div>
|
||||
{{- partial "slide.html" . -}}
|
||||
<div class="mx-auto my-10 max-w-6xl">
|
||||
<h2 class="text-4xl ml-2 text-white-custom" style="margin-bottom: 12px;">Pakete</h2>
|
||||
<h2 class="text-4xl ml-2 text-white-custom" style="margin-bottom: 12px;">Pakete für Partys</h2>
|
||||
<hr style="border-color: #00ad8e;">
|
||||
{{- partial "strip.html" . -}}
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
|
||||
{{ range first 5 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
|
||||
<a href="{{ .Permalink }}">{{ partial "summary.html" . }}</a>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ body.scroll-lock {
|
||||
bottom: 0px;
|
||||
}
|
||||
.scroll-top {
|
||||
background-color: #222;
|
||||
background-color: #00ad8e;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
position: fixed;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user