forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
02c3257022
commit
50d38dedf3
|
@ -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: ["",]
|
||||
---
|
Binary file not shown.
After Width: | Height: | Size: 118 KiB |
|
@ -29,9 +29,8 @@ aside {
|
|||
display: none;
|
||||
}
|
||||
|
||||
main h1 {
|
||||
margin-top: 0rem;
|
||||
margin-bottom: 0rem;
|
||||
h1 {
|
||||
margin-top: -1.84em;
|
||||
}
|
||||
|
||||
.right-sidebar {
|
||||
|
@ -155,6 +154,11 @@ article h3 {
|
|||
display: none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-top: .5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#headerinner {
|
||||
padding: 10px;
|
||||
}
|
||||
|
@ -191,7 +195,7 @@ article h3 {
|
|||
flex-direction: row;
|
||||
}
|
||||
|
||||
#articleimage {
|
||||
.text {
|
||||
margin-top: .5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -202,6 +206,13 @@ article h3 {
|
|||
height: 100%;
|
||||
}
|
||||
|
||||
.notext {
|
||||
margin-top: .5rem;
|
||||
flex-shrink: 0;
|
||||
max-width: 50%;
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
.borderrad25 {
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
|
|
@ -35,22 +35,29 @@
|
|||
</div>
|
||||
<div id="articleinner">
|
||||
<div id="articledata">
|
||||
{{- if .Resources.ByType "image" -}}
|
||||
<div id="articleimage">
|
||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||
{{- $thumb := $pic.Resize "1024x" }}
|
||||
<img src="{{- $thumb.Permalink -}}"/>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- if .Resources.ByType "image" -}}
|
||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||
{{ $thumb := "" }}
|
||||
{{ if eq .Content "" }}
|
||||
<div class="notext">
|
||||
{{- $thumb = $pic.Resize "1024x" }}
|
||||
{{ else }}
|
||||
<div class="text">
|
||||
{{- $thumb = $pic.Resize "2048x" }}
|
||||
{{ end }}
|
||||
|
||||
<img src="{{- $thumb.Permalink -}}"/>
|
||||
</div>
|
||||
{{- end }}
|
||||
<div id="articletext">
|
||||
{{- if .Params.description -}}
|
||||
{{- .Params.description -}}
|
||||
{{- else -}}
|
||||
{{- .Summary -}}
|
||||
{{- end }}
|
||||
{{ if .Truncated }}
|
||||
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
||||
{{ end }}
|
||||
{{- if .Params.description -}}
|
||||
{{- .Params.description -}}
|
||||
{{- else -}}
|
||||
{{- .Summary -}}
|
||||
{{- end }}
|
||||
{{ if .Truncated }}
|
||||
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -32,9 +32,16 @@
|
|||
<div id="articleinner">
|
||||
<div id="articledata">
|
||||
{{- if .Resources.ByType "image" -}}
|
||||
<div id="articleimage">
|
||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||
{{- $thumb := $pic.Resize "1024x" }}
|
||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||
{{ $thumb := "" }}
|
||||
{{ if eq .Content "" }}
|
||||
<div class="notext">
|
||||
{{- $thumb = $pic.Resize "1024x" }}
|
||||
{{ else }}
|
||||
<div class="text">
|
||||
{{- $thumb = $pic.Resize "2048x" }}
|
||||
{{ end }}
|
||||
|
||||
<img src="{{- $thumb.Permalink -}}"/>
|
||||
</div>
|
||||
{{- end }}
|
||||
|
@ -159,27 +166,6 @@
|
|||
|
||||
{{ 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" }}
|
||||
{{- partial "sidebar" . }}
|
||||
{{ end }}
|
Loading…
Reference in New Issue