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

list.html « _default « layouts - github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4061bed2e5bebd2141ddcd61a152aefb1ea4b8d6 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{{ partial "header.html" . }}
<div class="row">
  <div class="col-lg-9">
    {{ if and ( eq .Kind "taxonomy" ) ( eq .Type "authors" ) }}
    <div class="row">
      <h2>{{ .Name }}'s articles</h2>
    </div>
    {{ with ( .Site.GetPage "page" ( printf "profiles/%s" ( replace .Name " " "-" | lower ) ) ) }}
    <div class="row">
      {{ .Content }}
    </div>
    <hr/>
    {{ end }}
    {{ end }}

    {{ $paginator := .Paginate ( where .Site.RegularPages "Section" "ne" "profiles" ) }}
    {{ range $idx, $page := $paginator.Pages }}
    {{ if $page.Section }}
    <article>
      <div class="row">
        <h3><a href="{{ .RelPermalink}}">{{ .Title }}</a></h3>
      </div>
      <div class="row">
        <span class="ml-1">Created At: {{ .Date.Format "2006.01.02" }}</span>
        <span class="ml-1">Updated At: {{ .Lastmod.Format "2006.01.02" }}</span>
        {{ if .Params.Authors }}
        <span class="ml-1">Author(s): 
        {{ with .Params.Authors }}
        {{ range . }}
        <a class="ml-1 badge badge-pill badge-secondary" href="{{ "/authors/" | relLangURL }}{{ . | urlize }}/">{{ . }}</a>
        {{ end }}
        {{ end }}
        </span>
        {{ end }}
      </div>
      <div class="row">
        {{ .Summary }}
      </div>
      <div class="row">
        {{ with .Params.Tags }}
        {{ range . }}
        <a class="ml-1 badge badge-pill badge-secondary" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}/">{{ . }}</a>
        {{ end }}
        {{ end }}
      </div>
    </article>
    <hr/>
    {{ end }}
    {{ end }}
    {{ partial "pagination.html" . }}
  </div>

  <div class="col-lg-3">
    {{ partial "sidebar.html" . }}
  </div>
</div>
{{ partial "footer.html" . }}