first commit
This commit is contained in:
commit
7fa1a1444a
52 changed files with 1519 additions and 0 deletions
30
layouts/partials/li.html
Normal file
30
layouts/partials/li.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<section id="list-pane" class="list">
|
||||
<ul class="list-unstyled">
|
||||
{{ range .Data.Pages.ByPublishDate.Reverse }}
|
||||
<li class="list-entry">
|
||||
<a class="list-entry-link" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<p class="meta">
|
||||
{{ if not .Date.IsZero }} {{ .Date.Format (default "Jan 2, 2006" .Site.Params.dateformat) | upper }} {{ end }}
|
||||
- {{ math.Round (div (countwords .Content) 220.0) }} MIN READ
|
||||
<span class="category">
|
||||
{{ if isset .Params "categories" }}
|
||||
{{ $total := len .Params.categories }}
|
||||
{{ if gt $total 0 }}
|
||||
—
|
||||
{{ $total := sub $total 1 }}
|
||||
{{ range $i, $cat := sort .Params.categories }}
|
||||
<a class="category-link"
|
||||
href="{{ "categories/" | relURL }}{{ $cat | humanize | urlize }}">{{ $cat | upper }}</a>{{ if lt $i $total }},
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
</p>
|
||||
<p class="excerpt">
|
||||
{{ .Description }}
|
||||
</p>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
Loading…
Add table
Add a link
Reference in a new issue