initial
This commit is contained in:
17
layouts/partials/footer.html
Normal file
17
layouts/partials/footer.html
Normal 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) }}·{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</main>
|
||||
<footer><a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a></footer>
|
||||
</body>
|
||||
</html>
|
14
layouts/partials/header.html
Normal file
14
layouts/partials/header.html
Normal 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>
|
7
layouts/partials/nav.html
Normal file
7
layouts/partials/nav.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<nav>
|
||||
<ul>
|
||||
{{ range.Site.Menus.main }}
|
||||
<a href="{{ .URL }}"><li>{{ .Pre }}{{ .Name }}</li></a>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
10
layouts/partials/tagcloud.html
Normal file
10
layouts/partials/tagcloud.html
Normal 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 }}
|
Reference in New Issue
Block a user