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

sidebar.html « partials « layouts - github.com/tosi29/inkblotty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f53c42a296f2c909180c260e8007e1ef0f887c68 (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
<div class="sidebar1 widgets columns-1">

    <aside class="widget widget_categories">
        <h2>{{ T "categories_title" }}</h2>
        <ul class="widget__list">
            {{- range $name, $items := .Site.Taxonomies.categories -}}
            <li class="cat-item cat-item-2">
                <a href="{{- "categories/" | relLangURL -}}{{- $name | urlize | lower -}}">{{ $name | title }} ({{ $items.Count }})</a>
            </li>
            {{- end }}
        </ul>
    </aside>

    <aside class="widget widget_tag_cloud">
        <h2>{{ T "tags_title" }}</h2>
        <div class="tagcloud">
            {{- range $name, $items := .Site.Taxonomies.tags -}}
            <a class="tag-cloud-link" href="{{- "tags/" | relLangURL -}}{{- $name | urlize | lower -}}" title="{{ $name }}" style="font-size: 12pt;">{{ $name }} </a>
            {{- end }}
        </div>
    </aside>

    <aside class="widget widget_recent_entries">
        <h2>{{ T "recent_posts_title" }}</h2>
        <ul>
            {{- $recent_articles_num := (.Site.Params.widgets.recent_articles_num | default 10) }}
            {{- range first $recent_articles_num (where .Site.RegularPages "Section" "in" (.Site.Params.postSections | default (slice "post"))) }}
            <li>
                <a href="{{ .RelPermalink }}">{{ .Title }}</a>
            </li>
            {{- end }}
        </ul>
    </aside>

    <aside class="widget widget_archive">
        <h2>{{ T "archives_title" }}</h2>
        <ul>
            {{- range $name, $items := .Site.Taxonomies.archives -}}
            <li><a href="{{- "archives/" | relLangURL -}}{{- $name | urlize | lower -}}">{{ $name | title }} ({{ $items.Count }})</a></li>
            {{- end }}
        </ul>
    </aside>

</div>