forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
882528e65b
commit
5203638def
|
@ -1,6 +1,7 @@
|
|||
{{ if and .amount .pages }}
|
||||
{{ $amount := .amount }}
|
||||
{{ $type := .type }}
|
||||
{{ $title := .title }}
|
||||
{{ $pages := .pages.ByLastmod.Reverse }}
|
||||
{{ $p := .pages.ByLastmod.Reverse }}
|
||||
|
||||
|
@ -17,11 +18,11 @@
|
|||
{{ end }}
|
||||
{{- if gt (len $pages) 0 -}}
|
||||
<section class="list">
|
||||
{{ if .title }}<h2>{{ .title }}</h2>{{ end }}
|
||||
<!-- {{ if .title }}<h2>{{ .title }}</h2>{{ end }}-->
|
||||
{{- $home := .context.Kind }}
|
||||
{{- range first $amount $p -}}
|
||||
<article class="article_list_section">
|
||||
<a href="{{- .Permalink -}}">
|
||||
<!-- <a href="{{- .Permalink -}}">
|
||||
<div class="articletitle">
|
||||
{{ $cat := "" }}
|
||||
{{ if .Page.Params.events }}
|
||||
|
@ -35,7 +36,7 @@
|
|||
<h2>{{ $cat -}}{{- .Title -}}</h2>
|
||||
{{ end }}
|
||||
</div>
|
||||
</a>
|
||||
</a>-->
|
||||
<a href="{{- .Permalink -}}" class="no_underline">
|
||||
<div class="articlecontent">
|
||||
{{ $px := string "400" }}
|
||||
|
@ -60,15 +61,35 @@
|
|||
{{ $thumb = $image.Fill $fill }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "snippets/article_metadata" $metas }}
|
||||
<!-- {{ partial "snippets/article_metadata" $metas }}-->
|
||||
{{ if $thumb }}
|
||||
<img src="{{ $thumb.Permalink }}" width="100%"/>
|
||||
<!-- <img src="{{ $thumb.Permalink }}" width="100%"/>-->
|
||||
<div style="background: url({{ $image.Permalink }}); background-attachment: fixed; background-size: cover; height: 50vh; box-shadow: inset 0px 11px 8px -10px #222, inset 0px -11px 8px -10px #222; border: 4px solid var(--background); margin-bottom: 4rem;">
|
||||
<div style="display: flex; flex-direction: column;">
|
||||
<div style="background: var(--background-alt); margin-top: 5rem; padding-left: 2rem; padding-right: 2rem; padding-bottom: 1rem;" class="articletitle">
|
||||
{{ $cat := "" }}
|
||||
{{ if .Page.Params.events }}
|
||||
{{ $cat = index .Page.Params.events 0 }}
|
||||
{{ $cat = printf "%s: " $cat }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $type "index" }}
|
||||
<h3>{{ $cat -}}{{- .Title -}}</h3>
|
||||
{{ else }}
|
||||
<h2>{{ $cat -}}{{- .Title -}}</h2>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- if .Content -}}
|
||||
<div style="background: var(--background-alt); padding-left: 2rem; padding-right: 2rem; padding-bottom: 1rem;" class="article_content"><p>{{- .Summary -}}<p></div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{- if .Content -}}
|
||||
<!-- {{- if .Content -}}
|
||||
|
||||
<div class="article_content"><p>{{- .Summary -}}<p></div>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}-->
|
||||
</div>
|
||||
</a>
|
||||
</article>
|
||||
|
|
Loading…
Reference in New Issue
Block a user