Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html « layouts - github.com/funkydan2/hugo-kiera.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71d99ec137c0c3a633007c0202656796431b8d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ define "main" }}

<section id="home">
  <ul>
    {{ $hp_length := 10 }}
    {{ if isset .Site.Params "homepagelength" }}
      {{ $hp_length = .Site.Params.homepageLength }}
    {{ end }}
    {{ range $index, $page := first $hp_length (where site.RegularPages "Section" "in" .Site.Params.mainSections) }}
    <li {{if eq $index 0}}class="first" {{end}}>
      <h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
      {{ partial "aside" . }}
      {{ partial "featured_image" .}}
      <p>{{ .Summary }}</p>
      {{ if .Truncated }}
      <a href="{{ .RelPermalink }}">{{ T "readMore" }}</a>
      {{ end }}
    </li>
    {{ end }}
  </ul>
</section>

{{ end }}