small fixes

This commit is contained in:
teldra 2022-03-27 03:54:23 +02:00
parent 02c3257022
commit 50d38dedf3
5 changed files with 58 additions and 43 deletions

View File

@ -0,0 +1,11 @@
---
title: "Elektrohouse"
date: 2022-03-27T03:24:49+02:00
when: "13.4.1983"
recurrent: false
price: "free"
covid: ""
register: ""
categories: "Party"
tags: ["",]
---

View File

@ -29,9 +29,8 @@ aside {
display: none; display: none;
} }
main h1 { h1 {
margin-top: 0rem; margin-top: -1.84em;
margin-bottom: 0rem;
} }
.right-sidebar { .right-sidebar {
@ -155,6 +154,11 @@ article h3 {
display: none; display: none;
} }
h1 {
margin-top: .5rem;
margin-bottom: 1rem;
}
#headerinner { #headerinner {
padding: 10px; padding: 10px;
} }
@ -191,7 +195,7 @@ article h3 {
flex-direction: row; flex-direction: row;
} }
#articleimage { .text {
margin-top: .5rem; margin-top: .5rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -202,6 +206,13 @@ article h3 {
height: 100%; height: 100%;
} }
.notext {
margin-top: .5rem;
flex-shrink: 0;
max-width: 50%;
height: 50%;
}
.borderrad25 { .borderrad25 {
border-radius: 25px; border-radius: 25px;
} }

View File

@ -35,22 +35,29 @@
</div> </div>
<div id="articleinner"> <div id="articleinner">
<div id="articledata"> <div id="articledata">
{{- if .Resources.ByType "image" -}} {{- if .Resources.ByType "image" -}}
<div id="articleimage"> {{- $pic := index (.Resources.ByType "image") 0 -}}
{{- $pic := index (.Resources.ByType "image") 0 -}} {{ $thumb := "" }}
{{- $thumb := $pic.Resize "1024x" }} {{ if eq .Content "" }}
<img src="{{- $thumb.Permalink -}}"/> <div class="notext">
</div> {{- $thumb = $pic.Resize "1024x" }}
{{- end }} {{ else }}
<div class="text">
{{- $thumb = $pic.Resize "2048x" }}
{{ end }}
<img src="{{- $thumb.Permalink -}}"/>
</div>
{{- end }}
<div id="articletext"> <div id="articletext">
{{- if .Params.description -}} {{- if .Params.description -}}
{{- .Params.description -}} {{- .Params.description -}}
{{- else -}} {{- else -}}
{{- .Summary -}} {{- .Summary -}}
{{- end }} {{- end }}
{{ if .Truncated }} {{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div> <div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }} {{ end }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -32,9 +32,16 @@
<div id="articleinner"> <div id="articleinner">
<div id="articledata"> <div id="articledata">
{{- if .Resources.ByType "image" -}} {{- if .Resources.ByType "image" -}}
<div id="articleimage"> {{- $pic := index (.Resources.ByType "image") 0 -}}
{{- $pic := index (.Resources.ByType "image") 0 -}} {{ $thumb := "" }}
{{- $thumb := $pic.Resize "1024x" }} {{ if eq .Content "" }}
<div class="notext">
{{- $thumb = $pic.Resize "1024x" }}
{{ else }}
<div class="text">
{{- $thumb = $pic.Resize "2048x" }}
{{ end }}
<img src="{{- $thumb.Permalink -}}"/> <img src="{{- $thumb.Permalink -}}"/>
</div> </div>
{{- end }} {{- end }}
@ -159,27 +166,6 @@
{{ end }} {{ end }}
{{ define "nav2" }}
<details>
<summary style="list-style: none; text-align: right;"></summary>
<p>
{{ $true := false }}
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
{{ if ne $taxonomyname nil }}
{{ $true = true }}
{{ end }}
{{ end }}
{{ if $true }}
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
<a href="{{ "categories/" | relLangURL}}{{ $taxonomyname | urlize }}" style="margin-right: 1rem">{{ $taxonomyname | humanize }}</a>
{{ end }}
{{ end }}
{{ partial "sidebar.html" . }}
</p>
</details>
{{ end }}
{{ define "sidebar" }} {{ define "sidebar" }}
{{- partial "sidebar" . }} {{- partial "sidebar" . }}
{{ end }} {{ end }}