summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html8
-rw-r--r--layouts/posts/list.html8
-rw-r--r--layouts/posts/list.xml2
-rw-r--r--layouts/posts/single.html15
-rw-r--r--layouts/project-release/list.html14
-rw-r--r--layouts/project-release/list.xml27
-rw-r--r--layouts/project-release/single.html20
-rw-r--r--layouts/projects/list.html21
-rw-r--r--layouts/recipes/list.html33
-rw-r--r--layouts/recipes/single.html19
-rw-r--r--layouts/services/list.html17
11 files changed, 143 insertions, 41 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 98e77f7..f69ca6a 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -5,7 +5,13 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="canonical" class="u-url" href="{{ .Permalink }}">
<link rel="stylesheet" type="text/css" href="{{ $cssMain.Permalink }}">
+ <link rel="me" href="https://fedi.tyil.nl/@tyil">
+ <link rel="me" href="https://git.tyil.nl">
+ <link rel="me" href="https://sr.ht/~tyil">
+ <link rel="me" href="https://www.tyil.nl" class="h-card">
+ <link rel="me" href="mailto:p.spek@tyil.nl">
{{- range .AlternativeOutputFormats }}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" href="{{ .Permalink }}">
{{- end }}
@@ -17,7 +23,7 @@
{{- block "body" . }}
<header id="site-header">
<div class="container">
- <nav>
+ <nav class="main">
<a href="/" class="brand-name">{{ .Site.Title }}</a>
{{- range sort .Site.Sections "Title" }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
diff --git a/layouts/posts/list.html b/layouts/posts/list.html
index 40a0ba5..b5ec8ca 100644
--- a/layouts/posts/list.html
+++ b/layouts/posts/list.html
@@ -6,11 +6,13 @@
<ul>
{{- range .Pages }}
<li>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
+ <a class="u-url" href="{{ .Permalink }}"><span class="p-name">{{ .Title }}</span></a>
<small>
- {{ .Date | dateFormat "2006-01-02" }}
+ <time class="dt-published" datetime="{{ .Date | dateFormat "2006-01-02" }}">
+ {{ .Date | dateFormat "2006-01-02" }}
+ </time>
{{- range .Params.tags }}
- <a href="/tags/{{ . | lower }}">#{{ . }}</a>
+ <a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a>
{{- end }}
</small>
</li>
diff --git a/layouts/posts/list.xml b/layouts/posts/list.xml
index 17e054b..deb2448 100644
--- a/layouts/posts/list.xml
+++ b/layouts/posts/list.xml
@@ -30,7 +30,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
- <description>{{ .Summary | html }}</description>
+ <description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index cab9527..eca87b9 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -1,10 +1,13 @@
{{ define "main" }}
-<article>
+<article class="h-entry">
<header>
- <h1>{{ .Title }}</h1>
- {{- range .Params.tags }}
- <a href="/tags/{{ . | lower }}">#{{ . }}</a>
- {{- end }}
+ <h1 class="p-name">{{ .Title }}</h1>
+ <p>
+ {{- range .Params.tags }}
+ <a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a>
+ {{- end }}
+ &mdash; Published on <time class="dt-published" datetime="{{ .Date | dateFormat "2006-01-02" }}">{{ .Date | dateFormat "2006-01-02" }}</time>.
+ </p>
{{- if .Draft }}
<section class="admonition">
<div class="admonition-title">
@@ -19,7 +22,7 @@
</section>
{{- end }}
</header>
- <main>
+ <main class="e-content">
{{ .Content }}
</main>
<footer>
diff --git a/layouts/project-release/list.html b/layouts/project-release/list.html
new file mode 100644
index 0000000..b52dd0e
--- /dev/null
+++ b/layouts/project-release/list.html
@@ -0,0 +1,14 @@
+{{- define "main" }}
+<h1>{{ .Parent.Title }} Releases</h1>
+{{ .Content }}
+<ul>
+ {{- range .Pages }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ ({{ .Date | dateFormat "2006-01-02" }})
+ </li>
+ {{- end }}
+</ul>
+<p>Follow the <a href="{{ .Permalink }}index.xml">RSS feed</a> to stay up to date with
+the latest {{ .Parent.Title }} releases.</p>
+{{- end }}
diff --git a/layouts/project-release/list.xml b/layouts/project-release/list.xml
new file mode 100644
index 0000000..74cdda2
--- /dev/null
+++ b/layouts/project-release/list.xml
@@ -0,0 +1,27 @@
+{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ .Title }}</title>
+ <link>{{ .Permalink }}</link>
+ <description>{{ .Title }} Releases</description>
+ <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
+ <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
+ <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
+ <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
+ <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
+ <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
+ {{- with .OutputFormats.Get "RSS" -}}
+ {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
+ {{- end -}}
+ {{ range .Pages }}
+ <item>
+ <title>{{ .Title }}</title>
+ <link>{{ .Permalink }}</link>
+ <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
+ {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
+ <guid>{{ .Permalink }}</guid>
+ <description>{{ .Content | html }}</description>
+ </item>
+ {{ end }}
+ </channel>
+</rss>
diff --git a/layouts/project-release/single.html b/layouts/project-release/single.html
new file mode 100644
index 0000000..e422699
--- /dev/null
+++ b/layouts/project-release/single.html
@@ -0,0 +1,20 @@
+{{ define "main" }}
+<article>
+ <header>
+ <h1>{{ .Title }}</h1>
+ </header>
+ <main>
+ {{ .Content }}
+ </main>
+ <footer>
+ {{- with .Params.packages }}
+ Pre-built packages:
+ <ul>
+ {{- range $key, $value := . }}
+ <li><a href="{{ $value }}">{{ $key }}</a></li>
+ {{- end }}
+ </ul>
+ {{- end }}
+ </footer>
+</article>
+{{ end }}
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
new file mode 100644
index 0000000..de50a9c
--- /dev/null
+++ b/layouts/projects/list.html
@@ -0,0 +1,21 @@
+{{- define "main" }}
+<h1>{{ .Title }}</h1>
+{{ .Content }}
+{{- range .Sections }}
+ <section class="project">
+ <h2>
+ {{ .Title }}
+ <small>
+ {{- range .Params.languages }}
+ {{ . }}
+ {{- end }}
+ </small>
+ </h2>
+ {{ .Content }}
+ <nav class="project">
+ <a href="{{ .Permalink }}releases">Releases</a>
+ <a href="{{ .Params.repository }}">Sources</a>
+ </nav>
+ </section>
+{{- end }}
+{{- end }}
diff --git a/layouts/recipes/list.html b/layouts/recipes/list.html
index 9c51074..b758a2b 100644
--- a/layouts/recipes/list.html
+++ b/layouts/recipes/list.html
@@ -1,17 +1,24 @@
{{- define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
-<ul>
- {{- range sort .Paginator.Pages "Title" }}
- <li>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- <small>
- {{ .Summary }}
- {{- range .Params.tags }}
- <a href="/tags/{{ . | lower }}">#{{ . }}</a>
- {{- end }}
- </small>
- </li>
- {{- end }}
-</ul>
+{{- range sort .Pages "Title" }}
+<section class="recipe">
+ <div class="preview">
+ {{- with .Params.preview }}
+ <img src="{{ .src }}" />
+ {{- end }}
+ </div>
+ <div class="description">
+ <h2>
+ <a class="p-name" href="{{ .Permalink }}">{{ .Title }}</a>
+ </h2>
+ <ul class="taglist">
+ {{- range sort .Params.tags }}
+ <li><a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
+ {{- end }}
+ </ul>
+ {{ .Content }}
+ </div>
+</section>
+{{- end }}
{{- end }}
diff --git a/layouts/recipes/single.html b/layouts/recipes/single.html
index 7919970..353abd2 100644
--- a/layouts/recipes/single.html
+++ b/layouts/recipes/single.html
@@ -1,14 +1,12 @@
-{{ define "head" }}
- <script type="text/javascript" src="/js/cookbook.js"></script>
-{{- end }}
-
{{ define "main" }}
<article>
<header>
- <h1>{{ .Title }}</h1>
- {{- range .Params.tags }}
- <a href="/tags/{{ . | lower }}">#{{ . }}</a>
- {{- end }}
+ <h1 class="p-name">{{ .Title }}</h1>
+ <ul class="taglist">
+ {{- range sort .Params.tags }}
+ <li><a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
+ {{- end }}
+ </ul>
{{- if .Draft }}
<section class="admonition">
<div class="admonition-title">
@@ -26,7 +24,7 @@
</section>
{{- end }}
</header>
- <main>
+ <main class="e-content">
{{ .Content }}
<table>
<tbody>
@@ -81,6 +79,9 @@
<h2>Instructions</h2>
{{- range $i, $stage := .Params.stages }}
<h3>{{ $stage.label }}</h3>
+ {{- if $stage.notes }}
+ <p>{{ .notes }}</p>
+ {{- end }}
<ol>
{{- range $j, $step := $stage.steps }}
<li>
diff --git a/layouts/services/list.html b/layouts/services/list.html
index 0f06f87..8e78be0 100644
--- a/layouts/services/list.html
+++ b/layouts/services/list.html
@@ -1,12 +1,13 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
-<ul>
- {{ range .Paginator.Pages }}
- <li>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- <small>{{ .Params.location }}</small>
- </li>
- {{ end }}
-</ul>
+{{ range .Pages }}
+<section class="service">
+ <h2>
+ {{ .Title }}
+ <small><a href="{{ .Params.location }}">{{ .Params.location }}</a></small>
+ </h2>
+ {{ .Content }}
+</section>
+{{ end }}
{{ end }}