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

list.html « items « layouts - github.com/spaghettiwews/hugonews.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 04200e2e34e9697a3241ed572597632e48cc82ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ partial "header.html" . }}
{{ $start := add (sub (mul .Paginator.PageSize .Paginator.PageNumber) .Paginator.PageSize) 1 }}
<ol start={{ $start }}>
{{ range .Paginator.Pages }}
{{ $site := urls.Parse .Params.ItemUrl }}
<li class="item">
    <p class="item__urls"><a href="{{ .Params.ItemUrl }}">{{ .Title }}</a> <span class="item__siteurl">(<a href="/sites/{{ replace $site.Host "www." "" }}">{{ replace $site.Host "www." "" }}</a>)</span></p>
    <p class="item__meta">
        <span>{{ .PublishDate }}</span>
        {{ range .Params.tags }}
            <a class="item__tag" href="/tags/{{- replace . " " "-" -}}">{{- . -}}</a>
        {{- end }}
        <a class="item__notes" href="{{ .Permalink }}">notes</a>
    </p>
</li>
{{ end }}
</ol>

{{ template "_internal/pagination.html" . }}

{{ partial "footer.html" . }}