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

index.html « layouts - github.com/urjaacharya/redgood.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fc47b1d3296e5fe2dba3445c75aba2eccb083038 (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
{{ define "main" }}
{{ range ((where .Site.Pages "Params.pinned" true).ByDate.Reverse) | first 1 }}
<h3>
  <a href="{{ .Permalink }}">{{ .Title }}</a>
</h3>
<div class="pinned-post home-page-card">
  <p>{{ .Summary | plainify | truncate 250 }}</p>
  <div class="home-page-card-links">
    <a href="{{ .Permalink }}">
      Read Pinned Post
    </a>
  </div>
  <div class="home-page-card-links">
    <a href="{{ `pinnedposts` | relURL }}">All Pinned</a>
  </div>
</div>
{{ end }}

<h3>Recent Posts</h3>
<div class="recent-posts home-page-card">
  {{ range ((where .Site.Pages "Kind" "page").ByDate.Reverse) | first 6 }}
  {{ partial "listPage" . }}
  {{ end }}
  <div class="home-page-card-links">
    <a href="{{ `archive` | relURL }}"
      >All Posts</a
    >
  </div>
</div>

<h3>Sections</h3>
<div class="site-sections home-page-card">
  {{ range .Site.Sections }}
  {{ if not .Params.hideFromHome }}
  <p>
    <a href="{{ .Permalink }}" aria-label="site sections">{{ .Title }}</a> - {{ len .Pages}} Articles
  </p>
  {{ end }} {{ end }}
</div>
{{ partial "taxa" (dict "taxo" .Site.Taxonomies "mysite" .) }}
{{ end }}