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

terms.html « categories « layouts - github.com/lubang/hugo-hello-programmer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c6f046f0269c880b5bb111213ff49a02c8a68d9 (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
{{ partial "header" . }}

<div class="categories">
  <h1>CATEGORIES</h1>
  <p>카테고리 별 글을 볼 수 있습니다. 최근 글은 제목을 클릭하여 바로 읽을 수 있습니다.</p>
  <ul>
    {{ $baseurl := .Site.BaseURL }}
    {{ $data := .Data }}
    {{ range $key,$value := .Data.Terms.Alphabetical }}
    <li>
      <span class="title">
        <a href="{{ $baseurl }}{{ $data.Plural }}/{{ $value.Name | urlize }}">
          <i class="fa fa-angle-right icon" aria-hidden="true"></i>
          {{ upper $value.Name }} ({{ $value.Count }}개)
        </a>
      </span>
      <span class="links">
        {{ range first 1 $value.WeightedPages }}
        <a href="{{ .Permalink }}">
          <small>{{ .Date.Format "2006-01-02" }}</small>
          <span class="recent-title">{{ .Name }}</span>
        </a>
        {{ end }}
      </span>
    </li>
    {{ end }}
  </ul>
</div>

{{ partial "footer" . }}