diff options
author | Prefetch | 2021-02-24 09:47:22 +0100 |
---|---|---|
committer | Prefetch | 2021-02-24 09:47:22 +0100 |
commit | b5608ab92a4f8a5140571acabf54e3c6bdebd0e4 (patch) | |
tree | 673b19fadbbaff9c1f765037896a1ba7d008a2b8 /layouts |
Initial commit
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 12 | ||||
-rw-r--r-- | layouts/blog/list.html | 25 | ||||
-rw-r--r-- | layouts/blog/single.html | 14 | ||||
-rw-r--r-- | layouts/home.html | 13 | ||||
-rw-r--r-- | layouts/know/category.html | 36 | ||||
-rw-r--r-- | layouts/know/know-list.html | 32 | ||||
-rw-r--r-- | layouts/know/know.html | 12 | ||||
-rw-r--r-- | layouts/know/single.html | 13 | ||||
-rw-r--r-- | layouts/partials/footer.html | 7 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 | ||||
-rw-r--r-- | layouts/partials/mathjax.html | 1 | ||||
-rw-r--r-- | layouts/partials/navigation.html | 9 |
12 files changed, 177 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..b1910dc --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +{{ .Content }} +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..1bc9c3e --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +<h1>{{ .Title }}</h1> +{{ .Content }} + +{{ range .RegularPagesRecursive.GroupByPublishDate "2006" }} +<p> +{{ .Key }}: + <ul> + {{ range .Pages.ByPublishDate }} + <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} + </ul> +</p> +{{ end }} + +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..cc0a4fd --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +<h1>{{ .Title }}</h1> +{{ .TableOfContents }} +{{ .Content }} +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..58fce38 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +<img src="/logo256x256.gif" style="float:left;margin-right:16px;border:2px solid #666"> +{{ .Content }} +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/know/category.html b/layouts/know/category.html new file mode 100644 index 0000000..3dc8c7a --- /dev/null +++ b/layouts/know/category.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +<h1>{{ .Title }}</h1> + +{{ $category := slice .Title }} +{{ $concepts := (.Site.GetPage "/know/concept").RegularPages }} +{{ $relevant := where $concepts "Params.categories" "intersect" $category }} + +<div style="text-align:center;"> + - + {{ range $relevant.GroupByParam "firstLetter" }} + <a href="#{{ .Key }}">{{ .Key }}</a> + - + {{ end }} +</div> + +This is an alphabetical list of the concepts in this category. + +{{ range $relevant.GroupByParam "firstLetter" }} +<h2 id="{{ .Key }}">{{ .Key }}</h2> +<ul> + {{ range .Pages.ByTitle }} + <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} +</ul> +{{ end }} + +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/know/know-list.html b/layouts/know/know-list.html new file mode 100644 index 0000000..b1a8c33 --- /dev/null +++ b/layouts/know/know-list.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +<h1>{{ .Title }}</h1> + +<div style="text-align:center;"> + - + {{ range .RegularPages.GroupByParam "firstLetter" }} + <a href="#{{ .Key }}">{{ .Key }}</a> + - + {{ end }} +</div> + +{{ .Content }} + +{{ range .RegularPages.GroupByParam "firstLetter" }} +<h2 id="{{ .Key }}">{{ .Key }}</h2> +<ul> + {{ range .Pages.ByTitle }} + <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} +</ul> +{{ end }} + +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/know/know.html b/layouts/know/know.html new file mode 100644 index 0000000..b1910dc --- /dev/null +++ b/layouts/know/know.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +{{ .Content }} +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/know/single.html b/layouts/know/single.html new file mode 100644 index 0000000..d14a83c --- /dev/null +++ b/layouts/know/single.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +{{ partial "mathjax.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +{{ .Content }} +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..8ac5a50 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,7 @@ +<hr> +<div class="footl noha"> +© "Prefetch". Licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>. +</div> +<div class="footr noha"> +<a href="/uses/">uses</a> +</div> diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..ad10ab7 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,3 @@ +<meta charset="utf-8"> +<link rel="icon" href="data:,"> +<link rel="stylesheet" href="/main.css"> diff --git a/layouts/partials/mathjax.html b/layouts/partials/mathjax.html new file mode 100644 index 0000000..f7bf6e5 --- /dev/null +++ b/layouts/partials/mathjax.html @@ -0,0 +1 @@ +<script src="/mathjax.js" type="text/javascript"></script> diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html new file mode 100644 index 0000000..a5c835c --- /dev/null +++ b/layouts/partials/navigation.html @@ -0,0 +1,9 @@ +<div class="nav noha"> +<div class="navl"><a href="/">PREFETCH</a></div> +<div class="navr"> +<a href="/blog/">blog</a>  +<a href="/code/">code</a>  +<a href="/know/">know</a> +</div> +</div> +<hr> |