mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-19 00:02:43 +02:00
Initial commit.
This commit is contained in:
commit
b3a2e36507
50 changed files with 2152 additions and 0 deletions
layouts/_default
43
layouts/_default/list.html
Normal file
43
layouts/_default/list.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<body>
|
||||
<div id="layout" class="pure-g">
|
||||
<div class="content content-column pure-u-1 pure=u-md-4-5">
|
||||
{{ partial "brand.html" . }}
|
||||
|
||||
<h1 class="content-title-mini">{{ .Title }}</h1>
|
||||
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<details open>
|
||||
<summary>{{ .Key }} ({{ len .Pages }})</summary>
|
||||
|
||||
{{ range .Pages.GroupByDate "January" }}
|
||||
<div class="list-page">
|
||||
<ul>
|
||||
<li>
|
||||
<details open>
|
||||
<summary>{{ .Key }} ({{ len .Pages }})</summary>
|
||||
{{ range .Pages }}
|
||||
<ul>
|
||||
<li>
|
||||
<span class="list-date">{{ .Date.Format "Jan 2" }} ·</span>
|
||||
<a href="{{ .RelPermalink }}">{{.Title}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</details>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
</details>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue