several fixes and optimizations

This commit is contained in:
2022-06-20 20:33:12 +02:00
parent 0a2968ddfc
commit afd239d1eb
125 changed files with 902 additions and 283 deletions

View File

@ -1,5 +1,4 @@
<div class="card rounded-0 hover-shadow border-top-0 border-left-0 border-right-0">
<!-- <img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="scholarship-thumb"> -->
<div class="card-body">
<h4 class="card-title mb-3">{{ .Title }}</h4>
<div class="content">{{ .Content }}</div>

View File

@ -1,5 +1,9 @@
<div class="card border-primary rounded-0 hover-shadow mb-5">
{{ if .Params.Image }}
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
{{ else }}
<img class="card-img-top rounded-0" src="/media/begabtenfoerderung/image.png" alt="{{ .Title }}">
{{ end }}
<div class="card-body">
<ul class="list-inline">
<li class="list-inline-item"><p><i class="fa-solid fa-book-bookmark"></i> {{ .Params.Category }}</p></li>

View File

@ -7,7 +7,6 @@
<li class="list-inline-item"><p><i class="fa-solid fa-user-group"></i> {{ .Params.Class }}</p></li>
</ul>
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<!-- p class="card-text mb-4">{{ .Summary | truncate 100 }}</p-->
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "show_more"}}</a>
</div>
</div>

View File

@ -1,12 +1,10 @@
{{ define "main" }}
<!-- blogs -->
<section class="section">
<div class="container">
<div class="row">
<div class="col-lg-8 order-2 order-lg-1">
<div class="row">
<!-- blog post -->
{{ $paginator := .Paginate ( where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
<div class="col-sm-6 mb-5">
@ -14,12 +12,9 @@
class="card rounded-0 border-bottom border-primary border-top-0 border-left-0 border-right-0 hover-shadow">
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
<div class="card-body">
<!-- post meta -->
<ul class="list-inline mb-3">
<!-- post date -->
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-calendar-day"></i>
{{ .PublishDate.Format "02 Jan, 2006" }}</li>
<!-- author -->
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a
href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a>
</li>
@ -40,6 +35,5 @@
</div>
</div>
</section>
<!-- /blogs -->
{{ end }}

View File

@ -1,11 +1,8 @@
<article class="card rounded-0 border-bottom border-primary border-top-0 border-left-0 border-right-0 hover-shadow">
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
<div class="card-body">
<!-- post meta -->
<ul class="list-inline mb-3">
<!-- post date -->
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-calendar-day"></i> {{ .PublishDate.Format "02 Jan, 2006" }}</li>
<!-- author -->
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a
href="{{ `author` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a></li>
</ul>

View File

@ -1,6 +1,5 @@
{{ define "main" }}
<!-- blog details -->
<section class="section-sm">
<div class="container">
<div class="row">
@ -25,7 +24,6 @@
</ul>
</div>
<!-- border -->
<div class="col-12 my-4">
<div class="border-bottom"></div>
</div>
@ -34,7 +32,6 @@
{{ .TableOfContents }}
</aside>
</div>
<!-- blog contect -->
<div class="col-12 mb-5 content">
{{ .Content }}
</div>
@ -44,6 +41,5 @@
</div>
</div>
</section>
<!-- /blog details -->
{{ end }}

View File

@ -4,8 +4,7 @@
<ul class="list-inline">
<li class="list-inline-item"><p><i class="fa-solid fa-book-bookmark"></i> {{ .Params.Category }}</p></li>
</ul>
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<!--p class="card-text mb-4">{{ .Summary | truncate 100 }}</p-->
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title | truncate 20 }}</a></h4>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm text-uppercase">{{ i18n "read_more"}}</a>
</div>
</div>

View File

@ -2,7 +2,6 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
<!-- about -->
<section class="section">
<div class="container">
<div class="row">
@ -15,15 +14,12 @@
</div>
</div>
</section>
<!-- /about -->
<!-- funfacts -->
{{ if $data.homepage.zahlen.enable }}
{{ with $data.homepage.zahlen }}
<section class="section-sm bg-primary">
<div class="container">
<div class="row">
<!-- funfacts item -->
{{ range .zahl_element }}
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
<div class="text-center">
@ -37,7 +33,6 @@
</section>
{{ end }}
{{ end }}
<!-- /funfacts -->
{{ partial "info.html" . }}

View File

@ -1,18 +1,13 @@
{{ define "main" }}
<!-- scholarship -->
<section class="section">
<div class="container">
<div class="row mb-5">
<!-- <div class="col-md-6 mb-4 mb-md-0">
<img class="img-fluid" src="{{ .Params.Image | relURL }}" alt="scholarship news">
</div> -->
<div class="col-md-6 content">
{{ .Content }}
</div>
</div>
<div class="row">
<!-- scholarship item -->
{{ range .Data.Pages }}
<div class="col-lg-4 col-sm-6 mb-4">
{{ .Render "anmeldung" }}
@ -21,6 +16,5 @@
</div>
</div>
</section>
<!-- /scholarship -->
{{ end }}

View File

@ -1,6 +1,5 @@
{{ define "main" }}
<!-- wettbewerbe -->
<section class="section">
<div class="container">
<div class="row">
@ -8,7 +7,6 @@
</div>
<div class="row">
<div class="col-12">
<!-- course category list -->
<ul class="list-inline text-center filter-controls mb-5">
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">{{ i18n "all" }}</li>
{{ $categories := slice }}
@ -21,18 +19,14 @@
</ul>
</div>
</div>
<!-- wettbewerbe list -->
<div class="row filtr-container">
<!-- wettbewerb item -->
{{ range .Data.Pages }}
<div data-category="{{ .Params.Category | urlize }}" class="col-lg-4 col-sm-6 mb-5 filtr-item">
{{ .Render "wettbewerbe" }}
{{ .Render "begabtenfoerderung" }}
</div>
{{ end }}
</div>
<!-- /wettbewerbe list -->
</div>
</section>
<!-- /wettbewerbe -->
{{ end }}

View File

@ -1,19 +1,18 @@
{{ define "main" }}
<!-- section -->
<section class="section-sm">
<div class="container">
{{ if .Params.Image }}
<div class="row">
<div class="col-12 mb-4">
<!-- course thumb -->
<img style="height: 500px;width: 100%;object-fit: cover;" src="{{ .Params.Image | relURL }}"
class="img-fluid w-100">
</div>
</div>
{{ end }}
<div>
<h2>{{ .Title }}</h2>
</div>
<!-- course info -->
<div class="row align-items-center mb-5">
<div class="col-xl-6 order-sm-3 order-xl-2 col-12 order-2">
<ul class="list-inline">
@ -28,15 +27,15 @@
</li>
</ul>
</div>
{{ if .Params.Web_url }}
<div class="col-xl-3 text-sm-right text-left order-sm-2 order-3 order-xl-3 col-sm-6 mb-4 mb-xl-0">
<a href="{{ .Params.Web_url | safeURL }}" class="btn btn-primary">{{ i18n "website" }}</a>
</div>
<!-- border -->
{{ end }}
<div class="col-12 mt-4 order-4">
<div class="border-bottom border-primary"></div>
</div>
</div>
<!-- course details -->
<div class="row">
<div class="col-12 mb-4 content">
{{ .Content }}
@ -44,27 +43,23 @@
</div>
</div>
</section>
<!-- /section -->
<!-- related course -->
<section class="section pt-0">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="section-title">{{ i18n "related_contests" }}</h2>
<h2 class="section-title">{{ i18n "related_begabtenfoerderung" }}</h2>
</div>
</div>
<div class="row">
<!-- course item -->
{{ $related := (where .Site.RegularPages "Type" "wettbewerbe") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}}
{{ $related := (where .Site.RegularPages "Type" "begabtenfoerderung") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}}
{{ range first 3 $related }}
<div class="col-lg-4 col-sm-6 mb-5">
{{ .Render "wettbewerbe"}}
{{ .Render "begabtenfoerderung"}}
</div>
{{ end }}
</div>
</div>
</section>
<!-- /related course -->
{{ end }}

View File

@ -1,6 +1,5 @@
{{ define "main" }}
<!-- forms -->
<section class="section">
<div class="container">
<div class="row">
@ -14,6 +13,5 @@
</div>
</div>
</section>
<!-- /forms -->
{{ end }}

View File

@ -7,7 +7,6 @@
<h2 class="section-title">{{ .Title }}</h2>
</div>
</div>
<!-- research details -->
<div class="row">
<div class="col-12 mb-50 content">
{{ .Content }}

View File

@ -27,7 +27,6 @@
<br>
<div class="row shuffle-wrapper justify-content-center">
{{"<!-- portfolio item -->" | safeHTML}}
{{ range .Data.Pages }}
<div class="col-lg-4 shuffle-item"
data-groups="[{{range $index, $element:= .Params.Categories_ag }}{{if ne $index 0}},{{end}}&quot;{{. | urlize}}&quot;{{ end }}]">

View File

@ -1,11 +1,9 @@
{{ define "main" }}
<!-- section -->
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-12 mb-4">
<!-- course thumb -->
<img style="height: 500px;width: 100%;object-fit: cover;" src="{{ .Params.Image | relURL }}"
class="img-fluid w-100">
</div>
@ -13,7 +11,6 @@
<div>
<h2>{{ .Title }}</h2>
</div>
<!-- course info -->
<div class="row align-items-center mb-5">
<div class="col-xl-8 order-sm-3 order-xl-2 col-12 order-2">
<ul class="list-inline">
@ -58,12 +55,10 @@
<div class="col-xl-3 text-sm-right text-left order-sm-2 order-3 order-xl-3 col-sm-6 mb-4 mb-xl-0">
<a href="{{ .Params.Apply_url | safeURL }}" class="btn btn-primary">{{ i18n "join_club" }}</a>
</div>
<!-- border -->
<div class="col-12 mt-4 order-4">
<div class="border-bottom border-primary"></div>
</div>
</div>
<!-- course details -->
<div class="row">
<div class="col-12 mb-4 content">
{{ .Content }}
@ -71,9 +66,7 @@
</div>
</div>
</section>
<!-- /section -->
<!-- related course -->
<section class="section pt-0">
<div class="container">
<div class="row">
@ -82,7 +75,6 @@
</div>
</div>
<div class="row">
<!-- course item -->
{{ $related := (where .Site.RegularPages "Type" "ganztagsangebote") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}}
{{ range first 3 $related }}
<div class="col-lg-4 col-sm-6 mb-5">
@ -92,6 +84,5 @@
</div>
</div>
</section>
<!-- /related course -->
{{ end }}

View File

@ -2,13 +2,11 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
<!-- hero slider -->
{{ if $data.homepage.slider.enable }}
{{ with $data.homepage.slider }}
<section class="hero-section overlay bg-cover" data-background="{{ .bg_image | absURL }}">
<div class="container">
<div class="hero-slider">
<!-- slider item -->
{{ range .slider_item }}
<div class="hero-slider-item">
<div class="row">
@ -27,9 +25,7 @@
</section>
{{ end }}
{{ end }}
<!-- /hero slider -->
<!-- about us -->
{{ if $data.homepage.about.enable }}
{{ with $data.homepage.about }}
<section class="section">
@ -56,17 +52,12 @@
</section>
{{ end }}
{{ end }}
<!-- /about us -->
<!-- banner-feature -->
{{ if $data.homepage.success_banner.enable }}
{{ with $data.homepage.success_banner }}
<section class="section bg-cover" data-background="{{ .image | absURL }}" id="success">
<div class="container-fluid">
<div class="row no-gutters">
<!--div class="col-xl-4 col-lg-5 align-self-end">
<img class="img-fluid w-100" style="margin-top: -20px;" src="{{ .image | absURL }}" alt="banner-feature">
</div-->
<div class="col-xl-8 col-lg-7">
<div class="row feature-blocks bg-white justify-content-between">
{{ range .feature_item }}
@ -89,9 +80,7 @@
</section>
{{ end }}
{{ end }}
<!-- /banner-feature -->
<!-- courses -->
{{ if $data.homepage.ganztagsangebote.enable }}
<section class="section-sm">
<div class="container">
@ -106,17 +95,13 @@
</div>
</div>
</div>
<!-- course list -->
<div class="row justify-content-center">
<!-- course item -->
{{ range first 6 (where .Site.RegularPages "Type" "ganztagsangebote")}}
<div class="col-lg-4 col-sm-6 mb-5">
{{ .Render "ganztagsangebote" }}
</div>
{{ end }}
</div>
<!-- /course list -->
<!-- mobile see all button -->
<div class="row">
<div class="col-12 text-center">
<a href="{{ `ganztagsangebote` | relLangURL }}" class="btn btn-sm btn-primary-outline d-sm-none d-inline-block">{{ i18n "see_all" }}</a>
@ -125,9 +110,7 @@
</div>
</section>
{{ end }}
<!-- /courses -->
<!-- cta -->
{{ if $data.homepage.cta.enable }}
{{ with $data.homepage.cta }}
<section class="section bg-primary">
@ -147,15 +130,11 @@
</section>
{{ end }}
{{ end }}
<!-- /cta -->
<!-- info -->
{{ if $data.homepage.info.enable }}
{{ partial "info.html" . }}
{{ end }}
<!-- /info -->
<!-- termine -->
{{ if $data.homepage.termine.enable }}
<section class="section bg-gray">
<div class="container">
@ -171,7 +150,6 @@
</div>
</div>
<div class="row justify-content-center">
<!-- event -->
{{ with .Site.GetPage "/termine/_index.md" }}
{{ range first 3 .Params.events }}
@ -192,7 +170,6 @@
{{ end }}
</div>
<!-- mobile see all button -->
<div class="row">
<div class="col-12 text-center">
<a href="{{`termine` | relLangURL }}" class="btn btn-sm btn-primary-outline d-sm-none d-inline-block">{{ i18n "see_all" }}</a>
@ -201,9 +178,7 @@
</div>
</section>
{{ end }}
<!-- /events -->
<!-- blog -->
{{ if $data.homepage.blog.enable }}
<section class="section">
<div class="container">
@ -213,7 +188,6 @@
</div>
</div>
<div class="row justify-content-center">
<!-- blog post -->
{{ range first 3 (where .Site.RegularPages "Type" "post")}}
<article class="col-lg-4 col-sm-6 mb-5 mb-lg-0">
{{ .Render "post" }}
@ -223,6 +197,5 @@
</div>
</section>
{{ end }}
<!-- /blog -->
{{ end }}

View File

@ -4,7 +4,6 @@
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
@ -17,7 +16,6 @@ crossorigin=""/>
}
</style>
<!-- contact -->
<section class="section bg-gray">
<div class="container">
<div class="row">
@ -43,7 +41,6 @@ crossorigin=""/>
</div>
</div>
</section>
<!-- /contact -->
<section class="section pt-0 bg-gray">
<div class="container">

View File

@ -1,6 +1,4 @@
{{ "<!-- sidebar -->" | safeHTML }}
<aside class="col-lg-4 order-1 order-lg-2">
{{ "<!-- categories -->" | safeHTML }}
<div class="bg-white mb-5">
<h4 class="mb-4">{{ i18n "categories" }}</h4>
{{- if isset .Site.Taxonomies "categories" }}
@ -13,7 +11,6 @@
{{- end }}
{{- end }}
</div>
{{ "<!-- tags -->" | safeHTML }}
<div class="bg-white mb-5">
<h4 class="mb-4">{{ i18n "tags" }}</h4>
{{- if isset .Site.Taxonomies "tags" }}
@ -26,10 +23,8 @@
{{- end }}
{{- end }}
</div>
{{ "<!-- latest post -->" | safeHTML }}
<div class="bg-white">
<h4 class="mb-4">{{ i18n "latest_article" }}</h4>
{{ "<!-- post-item -->" | safeHTML }}
{{ range first 3 ( where .Site.Pages "Type" "post" )}}
<div class="media border-bottom border-color pb-3 mb-3">
<a href="{{ .Permalink }}"><img class="mr-3 post-thumb-sm" src="{{ .Params.Image | absURL }}"></a>
@ -42,5 +37,4 @@
</div>
{{ end }}
</div>
</aside>
{{ "<!-- /sidebar -->" | safeHTML }}
</aside>

View File

@ -1,11 +1,8 @@
<!-- footer -->
<footer>
<!-- footer content -->
<div class="footer bg-footer section border-bottom">
<div class="container">
<div class="row">
<div class="col-lg-3 col-sm-8 mb-5 mb-lg-0">
<!-- logo -->
<a class="logo-footer" href="{{ .Site.BaseURL | relLangURL }}"><img class="mb-4" height="60" src="{{ .Site.Params.logo | absURL }}" alt="{{ .Site.Title }}"></a>
<ul class="list-unstyled">
<li class="mb-4">
@ -26,7 +23,6 @@
{{ end }}
</ul>
</div>
<!-- support -->
<div class="col-lg-3 col-sm-4 col-6 mb-5 mb-md-0">
<h4 class="text-white mb-5 text-uppercase">{{ i18n "clubs_footer" }}</h4>
<ul class="list-unstyled">
@ -35,7 +31,6 @@
{{ end }}
</ul>
</div>
<!-- support -->
<div class="col-lg-2 col-sm-4 col-6 mb-5 mb-md-0">
<h4 class="text-white mb-5 text-uppercase">{{ i18n "latest_article" }}</h4>
<ul class="list-unstyled">
@ -47,7 +42,6 @@
</div>
</div>
</div>
<!-- copyright -->
<div class="copyright py-4 bg-footer">
<div class="container">
<div class="row">
@ -65,18 +59,14 @@
</div>
</div>
</footer>
<!-- /footer -->
{{ "<!-- JS Plugins -->" | safeHTML }}
{{ range .Site.Params.plugins.js}}
<script src="{{ .link | absURL }}"></script>
{{ end }}
{{ "<!-- Main Script -->" | safeHTML }}
{{ $script := resources.Get "js/script.js" | minify}}
<script src="{{ $script.Permalink }}"></script>
<!-- Load PhotoSwipe js if the load-photoswipe shortcode has been used -->
{{ if ($.Scratch.Get "photoswipeloaded") }}
<script src="/js/load-photoswipe.js"></script>
{{ if .Site.Params.CDNJS }}

View File

@ -2,22 +2,18 @@
<meta charset="utf-8">
<title>{{ .Title }}</title>
{{ "<!-- mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}
{{ "<!-- plugins -->" | safeHTML }}
{{ range .Site.Params.plugins.css }}
<link rel="stylesheet" href="{{ .link | absURL }}">
{{ end }}
{{ "<!-- Main Stylesheet -->" | safeHTML }}
{{ $styles := resources.Get "scss/style.scss" | toCSS }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
{{ "<!--Favicon-->" | safeHTML }}
<link rel="shortcut icon" href="{{ `media/favicon.png` | absURL }}" type="image/x-icon">
<link rel="icon" href="{{ `media/favicon.png` | absURL }}" type="image/x-icon">

View File

@ -1,6 +1,4 @@
<!-- header -->
<header class="fixed-top header">
<!-- top header -->
{{ if .Site.Params.top_header }}
<div class="top-header py-2 bg-white">
<div class="container">
@ -24,7 +22,6 @@
</div>
</div>
{{ end }}
<!-- navbar -->
<div class="navigation w-100 {{ if .Site.Params.top_header }} top-hider {{ end }}">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark p-0">
@ -60,7 +57,6 @@
{{ end }}
</ul>
<!-- Language List -->
{{ if .IsTranslated }}
<select class="m-2 border-0" id="select-language" onchange="location = this.value;">
{{ $siteLanguages := .Site.Languages}}
@ -81,10 +77,8 @@
{{ end }}
</select>
{{ end }}
<!-- /LL -->
</div>
</nav>
</div>
</div>
</header>
<!-- /header -->

View File

@ -1,4 +1,3 @@
<!-- page title -->
<section class="page-title-section overlay" style="background-image: url('{{ .Params.Bg_image | relURL}}'),url('{{`media/backgrounds/page-title.png`| relURL}}');" >
<div class="container">
<div class="row">

View File

@ -1,9 +1,7 @@
{{ if .Site.Params.preloader.enable }}
{{ "<!-- preloader start -->" | safeHTML }}
<div class="preloader">
{{ with .Site.Params.preloader.preloader }}
<img src="{{ . | absURL }}" width="222px" alt="preloader">
{{ end }}
</div>
{{ "<!-- preloader end -->" | safeHTML }}
{{ end }}

View File

@ -1,6 +1,5 @@
{{ define "main" }}
<!-- content -->
<section class="section">
<div class="container">
{{ .Content }}
@ -15,6 +14,5 @@
</div>
</div>
</section>
<!-- /content -->
{{ end }}

View File

@ -1,13 +1,11 @@
{{ define "main" }}
<!-- section -->
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-12 mb-4">
{{ .Content }}
</div>
<!-- cantorpreisträger -->
{{ if .Params.Cantorpreisträger }}
<div class="col-12">
<h2 class="mb-3">{{ i18n "cantorpreisträger" }}</h2>
@ -28,6 +26,5 @@
</div>
</div>
</section>
<!-- /section -->
{{ end }}

View File

@ -6,17 +6,14 @@
<div class="col-12">
<ul class="list-unstyled">
{{ range .Params.events }}
<li class="mb-4 w-100 border-bottom hover-shadow">
<div class="row">
<div class="col-md-2 text-center p-4 bg-primary text-white mb-4 mb-md-0"><span class="h2 d-block">{{ time.Format "2" .date}}</span> {{ time.Format "Jan 2006" .date}}</div>
<div class="col-md-10 d-md-table">
<div class="d-md-table-cell px-4 vertical-align-middle mb-4 mb-md-0">
<li class="mb-4 w-100 border-bottom hover-shadow d-md-table">
<div class="w-25 d-md-table-cell text-center p-4 bg-primary text-white mb-4 mb-md-0"><span class="h2 d-block">{{ time.Format "2" .date}}</span> {{ time.Format "Jan 2006" .date}}</div>
<div class="d-md-table-cell px-4 vertical-align-middle mb-4 mb-md-0">
<p href="{{ .Permalink }}" class="h4 mb-3 d-block">{{ .title }}</p>
<p class="mb-0">{{ .summary | truncate 100 }}</p>
</div>
<div class="d-md-table-cell vertical-align-middle text-right pr-0 pr-md-4"><p><i class="fa-solid fa-location-dot text-primary mr-2"></i>{{ .location | markdownify }}</p></div>
</div>
</div>
<div class="d-md-table-cell vertical-align-middle text-right pr-0 pr-md-4"><p><i class="fa-solid fa-location-dot text-primary mr-2"></i>{{ .location | markdownify }}</p></div>
</li>
{{ end }}
</ul>

View File

@ -1,6 +1,5 @@
{{ define "main" }}
<!-- wettbewerbe -->
<section class="section">
<div class="container">
<div class="row">
@ -8,7 +7,6 @@
</div>
<div class="row">
<div class="col-12">
<!-- course category list -->
<ul class="list-inline text-center filter-controls mb-5">
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">{{ i18n "all" }}</li>
{{ $categories := slice }}
@ -21,18 +19,14 @@
</ul>
</div>
</div>
<!-- wettbewerbe list -->
<div class="row filtr-container">
<!-- wettbewerb item -->
{{ range .Data.Pages }}
<div data-category="{{ .Params.Category | urlize }}" class="col-lg-4 col-sm-6 mb-5 filtr-item">
{{ .Render "wettbewerbe" }}
</div>
{{ end }}
</div>
<!-- /wettbewerbe list -->
</div>
</section>
<!-- /wettbewerbe -->
{{ end }}

View File

@ -1,11 +1,9 @@
{{ define "main" }}
<!-- section -->
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-12 mb-4">
<!-- course thumb -->
<img style="height: 500px;width: 100%;object-fit: cover;" src="{{ .Params.Image | relURL }}"
class="img-fluid w-100">
</div>
@ -13,7 +11,6 @@
<div>
<h2>{{ .Title }}</h2>
</div>
<!-- course info -->
<div class="row align-items-center mb-5">
<div class="col-xl-6 order-sm-3 order-xl-2 col-12 order-2">
<ul class="list-inline">
@ -31,12 +28,10 @@
<div class="col-xl-3 text-sm-right text-left order-sm-2 order-3 order-xl-3 col-sm-6 mb-4 mb-xl-0">
<a href="{{ .Params.Web_url | safeURL }}" class="btn btn-primary">{{ i18n "website" }}</a>
</div>
<!-- border -->
<div class="col-12 mt-4 order-4">
<div class="border-bottom border-primary"></div>
</div>
</div>
<!-- course details -->
<div class="row">
<div class="col-12 mb-4 content">
{{ .Content }}
@ -44,9 +39,7 @@
</div>
</div>
</section>
<!-- /section -->
<!-- related course -->
<section class="section pt-0">
<div class="container">
<div class="row">
@ -55,7 +48,6 @@
</div>
</div>
<div class="row">
<!-- course item -->
{{ $related := (where .Site.RegularPages "Type" "wettbewerbe") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}}
{{ range first 3 $related }}
<div class="col-lg-4 col-sm-6 mb-5">
@ -65,6 +57,5 @@
</div>
</div>
</section>
<!-- /related course -->
{{ end }}