small fixes
This commit is contained in:
parent
277d9cba00
commit
f41e36f2a3
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
|
@ -118,3 +118,6 @@ article .readmore {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.height32 {
|
||||||
|
height: 32rem;
|
||||||
|
}
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div style="display: flex; flex-wrap: wrap;">
|
<div style="display: flex; flex-wrap: wrap;">
|
||||||
{{ if gt (len $featured) 1 }}
|
{{ if gt (len $featured) 1 }}
|
||||||
<section style="width: 40%;">
|
<section class="index_section" style="width: 45%;">
|
||||||
{{ partial "layout/article_list" (dict "context" . "pages" $featured "amount" "5" "title" "Featured") }}
|
{{ partial "layout/article_list" (dict "context" . "pages" $featured "amount" "5" "title" "Featured") }}
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if gt (len $posts) 1 }}
|
{{ if gt (len $posts) 1 }}
|
||||||
<section style="width: 40%;">
|
<section class="index_section" style="width: 45%;">
|
||||||
{{ partial "layout/article_list" (dict "context" . "pages" $posts "amount" "5" "title" "News") }}
|
{{ partial "layout/article_list" (dict "context" . "pages" $posts "amount" "5" "title" "News") }}
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{{- $paginator := .context.Paginate $pages -}}
|
{{- $paginator := .context.Paginate $pages -}}
|
||||||
|
|
||||||
{{ if .paginate }}
|
{{ if .paginate }}
|
||||||
$p = $paginator.Pages
|
{{ $p = $paginator.Pages }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if eq $paginator.PageNumber 1 }}
|
{{ if eq $paginator.PageNumber 1 }}
|
||||||
|
@ -17,8 +17,9 @@
|
||||||
{{- if gt (len $pages) 0 -}}
|
{{- if gt (len $pages) 0 -}}
|
||||||
<section>
|
<section>
|
||||||
{{ if .title }}<h2>{{ .title }}</h2>{{ end }}
|
{{ if .title }}<h2>{{ .title }}</h2>{{ end }}
|
||||||
|
{{- $home := .context.Kind }}
|
||||||
{{- range first $amount $p -}}
|
{{- range first $amount $p -}}
|
||||||
<article class="article_list" style="height: 32rem;">
|
<article class="article_list {{- if eq $home "home" }} height32{{- end -}}">
|
||||||
<a href="{{- .Permalink -}}" class="no_underline">
|
<a href="{{- .Permalink -}}" class="no_underline">
|
||||||
<div class="articletitle">
|
<div class="articletitle">
|
||||||
<h2>{{- .Title -}}</h2>
|
<h2>{{- .Title -}}</h2>
|
||||||
|
|
|
@ -9,8 +9,10 @@
|
||||||
{{ $img := "none" }}
|
{{ $img := "none" }}
|
||||||
{{ if eq .Kind "home" }}
|
{{ if eq .Kind "home" }}
|
||||||
{{ $what = "home" }}
|
{{ $what = "home" }}
|
||||||
{{ else if .File.ContentBaseName }}
|
{{ else }}
|
||||||
{{ $what = .File.ContentBaseName }}
|
{{ with .File }}
|
||||||
|
{{ $what = .File.ContentBaseName }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $banner := printf "/images/banner/%s*" $what }}
|
{{ $banner := printf "/images/banner/%s*" $what }}
|
||||||
{{ if resources.GetMatch $banner }}
|
{{ if resources.GetMatch $banner }}
|
||||||
|
|
Loading…
Reference in New Issue