Better definition layout, page_status labels, content changes
This commit is contained in:
parent
e46e36412d
commit
4d4ee393af
19 changed files with 367 additions and 14 deletions
|
@ -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" . }}
|
||||
|
|
|
@ -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 }}
|
|
@ -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>
|
||||
|
|
13
layouts/_default/term.html
Normal file
13
layouts/_default/term.html
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue