This commit is contained in:
zoe 2022-04-09 18:00:33 +02:00
parent 572bc88b45
commit 8d93639193
13 changed files with 231 additions and 1 deletions

View file

@ -0,0 +1,19 @@
{{ define "main" }}
<main>
<article>
<header>
<h1>List - {{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</article>
<ul>
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<li>
<a href="{{.Permalink}}">{{.Title}}</a>
</li>
{{ end }}
</ul>
</main>
{{ end }}

View file

@ -0,0 +1,38 @@
{{ define "main" }}
<section id="main">
<h1 id="title">Single Page {{ .Title }}</h1>
<div>
<article id="content">
{{ .Content }}
</article>
</div>
</section>
<aside id="meta">
<div>
<section>
</section>
{{ with .Params.topics }}
<ul id="topics">
{{ range . }}
<li><a href="{{ "topics" | absURL}}{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
{{ end }}
{{ with .Params.tags }}
<ul id="tags">
{{ range . }}
<li> <a href="{{ "tags" | absURL }}{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
{{ end }}
</div>
<div>
{{ with .PrevInSection }}
<a class="previous" href="{{.Permalink}}">previous: {{.Title}}</a>
{{ end }}
{{ with .NextInSection }}
<a class="next" href="{{.Permalink}}">next: {{.Title}}</a>
{{ end }}
</div>
</aside>
{{ end }}