fix ausblick, move data out of language
This commit is contained in:
parent
5a1d9e743a
commit
86f38b2137
@ -1,7 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
|
||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
{{ $data := .Site.Data }}
|
||||||
|
|
||||||
{{ if $data.homepage.slider.enable }}
|
{{ if $data.homepage.slider.enable }}
|
||||||
{{ with $data.homepage.slider }}
|
{{ with $data.homepage.slider }}
|
||||||
@ -30,7 +30,7 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<section class="hero-section overlay bg-cover" style="background-image: url({{ $data.homepage.slider.bg_image | absURL }});">
|
<section class="hero-section overlay bg-cover" style="background-image: url('{{ $data.homepage.slider.bg_image | absURL }}');">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="hero-slider">
|
<div class="hero-slider">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -114,17 +114,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
|
{{ if $data.ausblick.enable }}
|
||||||
|
{{ with $data.ausblick }}
|
||||||
<div class="col-lg-4 col-sm-6 mb-4 mb-lg-0 d-flex align-items-stretch">
|
<div class="col-lg-4 col-sm-6 mb-4 mb-lg-0 d-flex align-items-stretch">
|
||||||
<div class="card border-info rounded-0 hover-shadow mb-4">
|
<div class="card border-info rounded-0 hover-shadow mb-4">
|
||||||
<span class="position-absolute top-0 start-0 ms-5 translate-middle p-2 text-bg-info border border-light rounded-pill">
|
<span class="position-absolute top-0 start-0 ms-5 translate-middle p-2 text-bg-info border border-light rounded-pill">
|
||||||
<i class="mdi mdi-pin me-2">Angeheftet</i>
|
<i class="mdi mdi-pin me-2">Angeheftet</i>
|
||||||
</span>
|
</span>
|
||||||
<img class="card-img-top rounded-0" src="{{ $data.ausblick.image | relURL }}" alt="{{ $data.ausblick.title }}" onclick="$('#{{ md5 $data.ausblick.title }}').modal('show');">
|
<img class="card-img-top rounded-0" src="{{ .image | relURL }}" alt="{{ .title }}" onclick="$('#{{ md5 .title }}').modal('show');">
|
||||||
<div class="card-body d-flex flex-column">
|
<div class="card-body d-flex flex-column">
|
||||||
<div class="row mb-2">
|
<div class="row mb-2">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<i class="mdi mdi-fountain-pen-tip me-2"></i>
|
<i class="mdi mdi-fountain-pen-tip me-2"></i>
|
||||||
{{ range $index, $elements := where (where .Site.RegularPages "Type" "author") "File.BaseFileName" "in" $data.ausblick.author }}
|
{{ range $index, $elements := where (where .Site.RegularPages "Type" "author") "File.BaseFileName" "in" .author }}
|
||||||
{{ if ne $index 0 }}, {{ end }}
|
{{ if ne $index 0 }}, {{ end }}
|
||||||
{{ if .Params.simplified }}
|
{{ if .Params.simplified }}
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
@ -134,14 +136,16 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h4 class="card-title text-truncate" onclick="$('#{{ md5 $data.ausblick.title }}').modal('show');">{{ $data.ausblick.title }}</h4>
|
<h4 class="card-title text-truncate" onclick="$('#{{ md5 .title }}').modal('show');">{{ .title }}</h4>
|
||||||
<p class="card-text" onclick="$('#{{ md5 $data.ausblick.title }}').modal('show');">{{ $data.ausblick.content | truncate 100 }}</p>
|
<p class="card-text" onclick="$('#{{ md5 .title }}').modal('show');">{{ .content | truncate 100 }}</p>
|
||||||
<button type="button" class="btn btn-primary btn-sm mt-auto align-self-start" onclick="$('#{{ md5 $data.ausblick.title }}').modal('show');">{{
|
<button type="button" class="btn btn-primary btn-sm mt-auto align-self-start" onclick="$('#{{ md5 .title }}').modal('show');">{{
|
||||||
i18n "show_more"}}</button>
|
i18n "show_more"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ range first (int $data.homepage.blog.number) (where .Site.RegularPages "Type" "post")}}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ range first (cond $data.ausblick.enable (int $data.homepage.blog.number) (add $data.homepage.blog.number 1)) (where .Site.RegularPages "Type" "post")}}
|
||||||
<div class="col-lg-4 col-sm-6 mb-4 mb-lg-0 d-flex align-items-stretch">
|
<div class="col-lg-4 col-sm-6 mb-4 mb-lg-0 d-flex align-items-stretch">
|
||||||
{{ .Render "card" }}
|
{{ .Render "card" }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<aside class="col-lg-4 order-4 order-lg-2" data-pagefind-ignore="all">
|
<aside class="col-lg-4 order-4 order-lg-2" data-pagefind-ignore="all">
|
||||||
<div class="bg-white mb-4">
|
<div class="bg-white mb-4">
|
||||||
<h4 class="mb-4">{{ i18n "categories" }}</h4>
|
<h4 class="mb-4">{{ i18n "categories" }}</h4>
|
||||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
{{ $transliterations := .Site.Data.transliterations.transliterations }}
|
||||||
{{ $transliterations := $data.transliterations.transliterations }}
|
|
||||||
{{- if isset .Site.Taxonomies "categories" }}
|
{{- if isset .Site.Taxonomies "categories" }}
|
||||||
{{- if not (eq (len .Site.Taxonomies.categories) 0) }}
|
{{- if not (eq (len .Site.Taxonomies.categories) 0) }}
|
||||||
<ul class="list-inline tag-list">
|
<ul class="list-inline tag-list">
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
</noscript>
|
</noscript>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{ $top_banner := (index .Site.Data .Site.Language.Lang).homepage.top_banner }}
|
{{ $top_banner := .Site.Data.homepage.top_banner }}
|
||||||
{{ if and $top_banner.enable }}
|
{{ if and $top_banner.enable }}
|
||||||
{{ if or (not $top_banner.temporarily.enable) (and $top_banner.temporarily.enable (and (le ($top_banner.temporarily.start_date | time.AsTime).Unix now.Unix ) (ge ($top_banner.temporarily.end_date | time.AsTime).Unix now.Unix))) }}
|
{{ if or (not $top_banner.temporarily.enable) (and $top_banner.temporarily.enable (and (le ($top_banner.temporarily.start_date | time.AsTime).Unix now.Unix ) (ge ($top_banner.temporarily.end_date | time.AsTime).Unix now.Unix))) }}
|
||||||
{{ with $top_banner }}
|
{{ with $top_banner }}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
{{ with .Site.Data.homepage.info }}
|
||||||
|
|
||||||
{{ with $data.homepage.info }}
|
|
||||||
<section class="section bg-cover" data-background="{{ .bg_image | absURL }}">
|
<section class="section bg-cover" data-background="{{ .bg_image | absURL }}">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user