meta: Update design and structure
This commit is contained in:
parent
10df7deea3
commit
c184aad39e
15 changed files with 152 additions and 135 deletions
|
|
@ -3,17 +3,19 @@
|
|||
{{ $pages := .Paginate (where
|
||||
.Site.RegularPages "Type" "ne" "page")
|
||||
}}
|
||||
<div class="list">
|
||||
<ul>
|
||||
{{ range $pages.Pages }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}" style="display: block">
|
||||
<div class="list">
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<p class="lead">{{ .Description }}</p>
|
||||
|
||||
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Lastmod | time.Format ":date_long" }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,20 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
<div class="list">
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<a href="{{ .RelPermalink }}" style="display: block">
|
||||
<div class="list">
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}" style="display: block">
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<p class="lead">{{ .Description }}</p>
|
||||
|
||||
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Lastmod | time.Format ":date_long" }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
{{ define "main" }}
|
||||
<article>
|
||||
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Lastmod | time.Format ":date_long" }}
|
||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $lastmodDateHuman := .Lastmod | time.Format ":date_long" }}
|
||||
{{ $lastmodDateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
<div class="dates">
|
||||
<p>Editiert: <time datetime="{{ $lastmodDateMachine }}">{{ $lastmodDateHuman }}</time></p>
|
||||
<p><time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p>
|
||||
</div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<p class="lead">{{ .Description }}</p>
|
||||
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue