This commit is contained in:
Luke Smith
2022-04-14 16:07:48 -04:00
commit 4ae859b630
16 changed files with 214 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{{ if isset .Params "tags" }}
{{ $tagsLen := len .Params.tags }}
{{ if gt $tagsLen 0 }}
<div class=taglist>
See related recipes:</br>
{{ range $k, $v := .Params.tags }}
{{ $url := printf "tags/%s" (. | urlize | lower) }}
<a href="{{ $url | absURL }}">{{ . }}</a>
{{ if lt $k (sub $tagsLen 1) }}&middot;{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}
</main>
<footer><a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a></footer>
</body>
</html>

View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language }}">
<head>
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel='stylesheet' type='text/css' href='/style.css'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="{{ .Params.tags }}">
<link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/rss.xml'>
</head>
<body>
{{ partial "nav.html" . }}
<main>

View File

@@ -0,0 +1,7 @@
<nav>
<ul>
{{ range.Site.Menus.main }}
<a href="{{ .URL }}"><li>{{ .Pre }}{{ .Name }}</li></a>
{{ end }}
</ul>
</nav>

View File

@@ -0,0 +1,10 @@
{{ if isset .Site.Taxonomies "tags" }}
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
<div class="tagcloud">
{{ range $name, $items := .Site.Taxonomies.tags }}
{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}
<a href="{{ $url | absURL }}">{{ $name }}</a>
{{ end }}
</div>
{{ end }}
{{ end }}