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

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