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

footer-widgets.html « footer « partials « layouts - github.com/jeremybise/twentynineteen-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fea01ef33546b6813ef0c6f0443ed9d1aa46ebf7 (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
<aside class="widget-area" role="complementary" aria-label="Footer">
  <div class="widget-column">
    <section id="search" class="widget widget_search">
      <form role="search" class="search-form" action="{{ "/search" | absURL }}">
        <label>
          <span class="screen-reader-text">Search for:</span>
          <input type="search" class="search-field" placeholder="Search ..." value name="s">
        </label>
        <input type="submit" class="search-submit" value="Search">
      </form>
    </section>

    <section id="recent-posts" class="widget widget_recent_entries">
      <h2 class="widget-title">Recent Posts</h2>
      <ul>
        {{ range first 5 (where site.RegularPages.ByPublishDate.Reverse "Type" "in" site.Params.mainSections) }}
        <li>
          <a href="{{ .RelPermalink }}">{{ .Title }}</a>
        </li>
        {{ end }}
      </ul>
    </section>

    {{ if .Site.Taxonomies.tags }}
      <section id="categories" class="widget widget_categories">
        <h2 class="widget-title">Tags</h2>
        <ul>
          {{ range .Site.Taxonomies.tags }}
          <li class="cat-item">
            <a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a>
          </li>
          {{ end }}
        </ul>
      </section>
    {{ end }}
  </div>
</aside>