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

terms.html « _default « layouts - github.com/dldx/hpstr-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0dbcd931c6a62e22b9b9e7c89ea158609b7bf498 (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
{{ partial "head.html" . }}
<body id="post-index" {{ if isset ($.Scratch.Get "Params") "image" }}class="feature"{{ end }}>
{{ partial "navigation.html" . }}
<div class="entry-header">
  {{ if isset ($.Scratch.Get "Params") "image" }}
{{ $imageparams := index ($.Scratch.Get "Params") "image" }}
	{{ if $imageparams.credit }}<div class="image-credit">Image credit: <a href="{{ $imageparams.creditlink }}">{{ $imageparams.credit }}</a></div><!-- /.image-credit -->{{ end }}
    <div class="entry-image">
      <img src="{{ $imageparams.feature | absURL }}" alt="{{ .Title }}">
    </div><!-- /.entry-image -->
  {{ end }}
  <div class="header-title">
    <div class="header-title-wrap">
		<h1><a href="/" title="Go to the homepage">{{ .Site.Title }}</a></h1>
	  <h2>{{ if .IsHome }}
            {{ .Site.Params.subtitle }}
          {{ else if .IsNode }}
            {{ $pagename := (index .Site.Data.sections (lower .Title)) }}
            {{ if $pagename }}
              {{  index $pagename "title"  }}
            {{ else }}
              {{ .Title }}
            {{ end }}
          {{ else if .IsPage }}
            {{ .Title }}
          {{ end }}</h2>
    </div><!-- /.header-title-wrap -->
  </div><!-- /.header-title -->
</div><!-- /.entry-header -->

<div id="main" role="main">
<ul class="entry-meta inline-list">
{{ range $key, $value := .Data.Terms }}
  	<li><a href="#{{ $key }}" class="tag"><span class="term">{{ $key }}</span> <span class="count">{{ $value.Count }}</span></a></li>
{{ end}}
</ul>

{{ $data := .Data }}
{{ range $key, $value := .Data.Terms }}
	<article>
	<h2 id="{{ $key }}" class="tag-heading">{{ $key }}</h2>
		<ul>
            {{ range $value.Pages.ByDate.Reverse }}
              <li class="entry-title"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></li>
            {{ end}}
		</ul>
	</article><!-- /.hentry -->
{{ end}}

</div><!-- /#main -->
{{ partial "foot.html" . }}