layout fixes

This commit is contained in:
Denys Konovalov 2023-01-01 17:21:53 +01:00
parent 80efee0633
commit 9f7f344497
2 changed files with 8 additions and 10 deletions

@ -6,7 +6,7 @@
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a <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> href="{{ `author` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a></li>
</ul> </ul>
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h4> <h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title | truncate 20 }}</a></h4>
<p class="card-text">{{ .Summary | truncate 100 }}</p> <p class="card-text">{{ .Summary | truncate 100 }}</p>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "read_more" }}</a> <a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "read_more" }}</a>
</div> </div>

@ -61,8 +61,8 @@
{{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp|webp|avif|jxl|svg)" }}<!-- is the current file an image? --> {{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp|webp|avif|jxl|svg)" }}<!-- is the current file an image? -->
{{- if $isimg }} {{- if $isimg }}
{{- $linkURL := print "/media/logos/start" "/" .Name | absURL }}<!-- relative URL --> {{- $linkURL := print "/media/logos/start" "/" .Name | absURL }}<!-- relative URL -->
<div class="col-md-3 col-4 order-1 order-md-2 mt-4"> <div class="col-md-3 col-6 order-1 order-md-2 mt-4">
<img class="img-fluid w-100" src="{{ $linkURL }}" alt="about image"> <img class="img-fluid w-100" src="{{ $linkURL }}">
</div> </div>
{{- end }} {{- end }}
{{- end }} {{- end }}
@ -87,8 +87,8 @@
{{ end }} {{ end }}
</div> </div>
{{ with .image }} {{ with .image }}
<div class="col-md-3 order-1 order-md-2 mb-md-0"> <div class="col-md-3 col-6 order-1 order-md-2 mb-md-0 mx-auto">
<img class="img-fluid w-100" src="{{ . | absURL }}" alt="about image"> <img class="img-fluid w-100" src="{{ . | absURL }}">
</div> </div>
{{ end }} {{ end }}
</div> </div>
@ -212,7 +212,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row justify-content-center"> <div class="row justify-content-center px-2">
{{ with .Site.GetPage "/termine/_index.md" }} {{ with .Site.GetPage "/termine/_index.md" }}
@ -223,8 +223,6 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ range first 3 $events }} {{ range first 3 $events }}
<li class="d-md-table mb-4 w-100 border-bottom hover-shadow"> <li class="d-md-table mb-4 w-100 border-bottom hover-shadow">
<div class="d-md-table-cell text-center p-4 bg-primary text-white mb-4 mb-md-4 termin-tc"><span class="h2 d-block">{{ time.Format "2" .date}}</span> <span class="d-block">{{ time.Format "Jan 2006" .date}}</span> {{ with .enddate }} <br> bis {{ time.Format "2 Jan 2006" . }} {{end}}</div> <div class="d-md-table-cell text-center p-4 bg-primary text-white mb-4 mb-md-4 termin-tc"><span class="h2 d-block">{{ time.Format "2" .date}}</span> <span class="d-block">{{ time.Format "Jan 2006" .date}}</span> {{ with .enddate }} <br> bis {{ time.Format "2 Jan 2006" . }} {{end}}</div>
@ -266,7 +264,7 @@
</div> </div>
{{ with .image }} {{ with .image }}
<div class="col-md-5 order-1 order-md-2 mb-4 mb-md-0"> <div class="col-md-5 order-1 order-md-2 mb-4 mb-md-0">
<img class="img-fluid w-100" src="{{ . | absURL }}" alt="about image"> <img class="img-fluid w-100" src="{{ . | absURL }}">
</div> </div>
{{ end }} {{ end }}
</div> </div>
@ -284,7 +282,7 @@
{{- if $isimg }} {{- if $isimg }}
{{- $linkURL := print "/media/logos" "/" .Name | absURL }}<!-- relative URL --> {{- $linkURL := print "/media/logos" "/" .Name | absURL }}<!-- relative URL -->
<div class="col-md-2 col-4 order-1 order-md-2 mb-4"> <div class="col-md-2 col-4 order-1 order-md-2 mb-4">
<img class="img-fluid w-100" src="{{ $linkURL }}" alt="about image"> <img class="img-fluid w-100" src="{{ $linkURL }}">
</div> </div>
{{- end }} {{- end }}
{{- end }} {{- end }}