diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ffe85da..249ea3d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,14 +1,25 @@ {{ partial "header.html" . }} -<div class="content"> - {{ if not .IsHome }} - <h1>{{ .Title | markdownify }}</h1> - {{ end }} - <ul> - {{ range (where .Data.Pages "Section" "!=" "") }} - <li>{{ .Date.Format "January 2, 2006" }} - <a href="{{ .URL }}">{{ .Title | markdownify }}</a> - </li> - {{ end }} - </ul> -</div> +<main> + <header class="header-inline"> + <div class="heading"> + <div class="info"> + <div class="content"> + {{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }} + </div> + </div> + <div class="content"> + <h1>{{ .Title | markdownify }}</h1> + </div> + </div> + </header> + <div class="content"> + <ul> + {{ range (where .Data.Pages "Section" "!=" "") }} + <li>{{ .Date.Format "Jan 2nd, 2006" }} + <a href="{{ .URL }}">{{ .Title | markdownify }}</a> + </li> + {{ end }} + </ul> + </div> +</main> {{ partial "footer.html" . }} |