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

index.html « layouts - github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 35481f061701fc951188396d326df52c25e3f541 (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
37
38
39
40
41
42
43
{{- define "content"}}

<main class="main" role="main">
  {{/* partial "archive-list.html" . - */}}
  <div class="content article-list">
    <!-- {{- print ($.Scratch.Get "pages") }} -->
    {{ $paginator := .Paginate ($.Scratch.Get "pages") }}
    {{ range $paginator.Pages }}
    <article
      class="article article-type-page"
      itemscope
      itemtype="http://schema.org/BlogPosting"
    >
      <div class="article-header">
        {{- .Scratch.Set "class_name" "article-title" }}
        {{ partial "post/title.html" . -}}
        {{- .Scratch.Delete "class_name"}}
      </div>
      {{- if .Description }}
      <div class="article-entry text-muted" itemprop="description">
        {{- .Description -}}
      </div>
      {{ else if .Summary }}
      <div class="article-entry text-muted" itemprop="description">
        {{ .Summary }}
      </div>
      {{- end }}
      <p class="article-meta">
        {{- partial "post/date.html" . }}
        {{- partial "post/category.html" . }}
        {{- partial "post/tag.html" . }}
        {{- if .Site.Params.comment.type }}
        <span class="post-comment"><i class="icon icon-comment"></i> &nbsp;<a href="{{- .RelPermalink }}#comments" class="article-comment-link">{{- T "article_comments" }}</a></span>
        {{- end }}
        {{- partial "post/wc.html" . }}
      </p>
    </article>
    {{- end -}}
  </div>
  {{ partial "pagination.html" . }}
</main>
{{- end }}