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

classic_index.html « partials « layouts - github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a4d567c7be2ab90a1b4e87a689cd6921c09812e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!-- Partial for classic index page -->

<div id="main">
  <div id="content">
    <div class="blog-index">
      {{ $paginator := where site.RegularPages "Type" "in" site.Params.mainSections | .Paginate }}
      {{ if $paginator }}
        {{ range $paginator.Pages }}
        <article>
          <!-- {{ .Scratch.Set "isHome" true }}  -->
          {{ partial "post_header.html" . }}
          {{ if eq .Site.Params.truncate false }}
            {{ .Content }}
          {{ else if .Description }}
            {{ .Description }}
              <footer>
                <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On &rarr;{{ end }}</a>
              </footer>
          {{ else }}
            <p>{{ .Summary }}</p>
            {{ if .Truncated }}
              <footer>
                <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On &rarr;{{ end }}</a>
              </footer>
            {{ end }}
          {{ end }}
        </article>
        {{ end }}
      {{ end }}
      <!-- {{ template "_internal/pagination.html" . }} default pagination -->
      {{ partial "pagination.html" . }}  <!-- use custom pagination -->
    </div>
    {{ partial "sidebar.html" . }}    <!-- sidebar -->
  </div>
</div>
{{ partial "footer.html" . }}   <!-- footer -->