first!
This commit is contained in:
commit
cf7a27bfa1
225 changed files with 3580 additions and 0 deletions
23
layouts/_default/things-list.html
Normal file
23
layouts/_default/things-list.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
<article>
|
||||
{{ if or .Title .Content }}
|
||||
<div>
|
||||
{{ with .Title }}<h2 class="title">{{ . }}</h2>{{ end }}
|
||||
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<ul>
|
||||
<li><a href="/things">All</a></li>
|
||||
<li><a href="/things/article">Articles</a></li>
|
||||
<li><a href="/things/game">Games</a></li>
|
||||
<li><a href="/things/video">Videos</a></li>
|
||||
<li><a href="/things/website">Websites</a></li>
|
||||
</ul>
|
||||
|
||||
{{ $showAll := .Parent.IsHome }}
|
||||
{{ partial "things.html" (dict "ctx" . "showAll" $showAll) }}
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue