forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
20d8e9f575
commit
8bf5316c34
|
@ -31,6 +31,10 @@ h1 {
|
|||
padding: 1rem;
|
||||
}
|
||||
|
||||
#underline_links a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
aside {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -108,15 +108,12 @@
|
|||
{{ define "sidebar" }}
|
||||
{{ if ne .Type "tools" }}
|
||||
<aside id="sidebar">
|
||||
{{ if .Params.categories }}
|
||||
<h3 class="align_menu"><a href="{{ "/categories/" | relLangURL }}">{{ if i18n "categories" }}{{ i18n "categories" }}{{ else }}{{ "Categories" }}{{ end }}</a></h3>
|
||||
|
||||
<h3 class="align_menu">{{ if i18n "categories" }}{{ i18n "categories" }}{{ else }}{{ "Categories" }}{{ end }}</h3>
|
||||
{{ range .Params.categories }}
|
||||
<div class="align_menu"><a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.events }}
|
||||
<h3 class="align_menu"><a href="{{ "/events/" | relLangURL }}">{{ if i18n "events" }}{{ i18n "events" }}{{ else }}{{ "events" }}{{ end }}</a></h3>
|
||||
{{ range .Params.events }}
|
||||
<div class="align_menu"><a href="{{ "/events/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,25 +1,6 @@
|
|||
{{ $pic := "solo" }}
|
||||
{{ $text := "solo" }}
|
||||
{{- if and (.context.Resources.ByType "image") (.content) -}}
|
||||
{{ $pic = "multiple_small" }}
|
||||
{{ $text = "multiple_big" }}
|
||||
{{ end }}
|
||||
{{ $img := "" }}
|
||||
{{ $thumb := "" }}
|
||||
{{- .Resources.ByType "image" -}}
|
||||
{{- if .context.Resources.ByType "image" -}}
|
||||
{{- $img = index (.context.Resources.ByType "image") 0 -}}
|
||||
{{- $thumb = $img.Resize "1024x" }}
|
||||
{{ end }}
|
||||
<section>
|
||||
<div class="articleinner">
|
||||
{{ if (ne $img "") }}
|
||||
<div class="articlepicture {{ "multiple_medium" }} margin_right_1rem">
|
||||
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
|
||||
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
|
||||
{{ if ne .type "list" }}</a>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="articletext {{ $text }}">
|
||||
{{ if .partial_before }}
|
||||
{{ partial .partial_before (dict "context" .context "pic" .pic) }}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<section>{{ .content }}</section>
|
||||
<section id="underline_links">{{ .content }}</section>
|
||||
|
|
Loading…
Reference in New Issue
Block a user