casper3 | new theme!
This commit is contained in:
parent
afc968f2fd
commit
79bd0dfa77
27 changed files with 1989 additions and 0 deletions
22
themes/casper3/layouts/partials/read-next.html
Normal file
22
themes/casper3/layouts/partials/read-next.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{{ with .Params.tags }}
|
||||
{{ $primaryTag := (index . 0) }}
|
||||
<article class="read-next-card">
|
||||
<header class="read-next-card-header">
|
||||
<h3><span>More in</span> <a href="{{ "/tags/" | relLangURL }}{{ $primaryTag | urlize }}">{{ $primaryTag }}</a></h3>
|
||||
</header>
|
||||
<div class="read-next-card-content">
|
||||
<ul>
|
||||
{{ range first 3 (where (index $.Site.Taxonomies.tags $primaryTag).Pages "Section" "post") }}
|
||||
<li>
|
||||
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
<div class="read-next-card-meta">
|
||||
<p><time datetime="{{.Date.Format "2006-31-01"}}">{{.Date.Format "01 Jan 2006"}}</time>
|
||||
{{ if .Params.reading_time }} – {{ .Params.reading_time }} {{ end }}
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue