aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/partials/article-more-content.html
blob: 5751aaa12cbabc7f40e6da5d1867ccb6e98ef063 (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
<article-more-content id="article-more-content">
  <section>
    <h2>More Content</h2>
    {{ $more := shuffle .Site.RegularPages | first 3 }}
    {{ with $more }}
      {{ range . }}
        <ul>
          <li>
            <h3>
              <a 
                href="{{ .RelPermalink }}" 
                title="{{ truncate 100 "..." .Summary }}"
              >
                {{ .Title | markdownify }}
              </a>
            </h3>
            <time datetime="{{ dateFormat "2006-01-02" .Date }}">
              {{ dateFormat "January 2, 2006" .Date }}
            </time>
          </li>
        </ul>
      {{ end }}
    {{ end }}
  </section>
</article-more-content>