Lijst modulair gemaakt en opgeschoond
This commit is contained in:
parent
170bbdc594
commit
c387dd1df3
|
@ -1,24 +1,13 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
<a class="skip-link" href="#main">Skip to main</a>
|
||||
<main id="main">
|
||||
<div class="content">
|
||||
{{ partial "header.html" . }}
|
||||
<section>
|
||||
<ul reversed class="list">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}
|
||||
</a>
|
||||
<hr class="hr-list">
|
||||
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02/01/06" .Date }}</time>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<ul reversed class="list">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
||||
<hr class="hr-list">
|
||||
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
Reference in a new issue