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

list.html « _default « layouts - github.com/spaghettiwews/hugonews.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2fe5fabf584641caa3104fa793bb0956027f71e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ 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">
            {{ partial "age.html" . }}
            {{ 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" . }}