Better definition layout, page_status labels, content changes

This commit is contained in:
magmaus3 2023-08-10 14:17:28 +02:00
parent e46e36412d
commit 4d4ee393af
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
19 changed files with 367 additions and 14 deletions

View file

@ -5,6 +5,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/index.css" rel="stylesheet">
{{ block "head" . }}
{{ end }}
</head>
<body>
{{ block "main" . }}

View file

@ -1,3 +1,6 @@
{{ define "head" }}
<link rel="stylesheet" href="/syntax_highlighting.css">
{{ end }}
{{ define "main" }}
{{ partial "header.html" }}
<article>
@ -6,7 +9,9 @@
</header>
{{ .Content }}
<footer>
{{ partial "see_also" . }}
{{ partial "categories.html" }}
{{ partial "content_notices.html" . }}
</footer>
</article>
{{ end }}

View file

@ -1,11 +1,11 @@
{{ define "main" }}
<main>
<div>
{{ partial "header.html" . }}
<h1>{{ .Name | lower }}</h1>
<!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
<ul>
{{ range .Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .Permalink }}">{{ .Title }}</a> {{ printf "%#v" .Kind }}</li>
{{ end }}
</ul>
</div>

View file

@ -0,0 +1,13 @@
{{ define "main" }}
<main>
<div>
{{ partial "header.html" . }}
<h1>Pages marked as <code>{{ .Type | lower }}.{{ .Name | lower }}</code></h1>
<ul>
{{ range .Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
</main>
{{ end }}