Import theme
This commit is contained in:
parent
51769fa6be
commit
c59ffbfeee
127 changed files with 13611 additions and 1 deletions
42
layouts/_default/list.html
Normal file
42
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{{ define "main" }}
|
||||
<div
|
||||
class="archive {{ with .Site.Params.doNotLoadAnimations }}
|
||||
.
|
||||
{{ else }}
|
||||
animated fadeInDown
|
||||
{{ end }}"
|
||||
>
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="archive__heading">{{ .Key }}</div>
|
||||
{{ range .Pages }}
|
||||
<ul class="archive__list">
|
||||
<li class="archive__list-item">
|
||||
{{ if (eq .Site.Params.disableArchiveTitleStyling true) }}
|
||||
<a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
||||
{{ else }}
|
||||
<a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ upper .Title }}</a>
|
||||
{{ end }}
|
||||
<div class="archive__list-date">
|
||||
{{ if isset .Site.Params "listdateformat" }}
|
||||
{{ if .Site.Params.localizedDates }}
|
||||
{{ time.Format .Site.Params.listDateFormat .Date }}
|
||||
{{ else }}
|
||||
{{ .Date.Format .Site.Params.listDateFormat }}
|
||||
{{ end }}
|
||||
|
||||
{{ else }}
|
||||
{{ if .Site.Params.localizedDates }}
|
||||
{{ time.Format "Jan 2" .Date }}
|
||||
{{ else }}
|
||||
{{ .Date.Format "Jan 2" }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue