summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-08-04 14:49:48 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-08-04 14:49:48 +0200
commit07ae26b4d0730735eadf1055d27a291a69ba0131 (patch)
tree166eb5c2dbeac97a9ff1fce1c423186c4402a8ee
parent87a04eaf82583c4186a132afe6cf0f0effada919 (diff)
Add h-entry tags to content
-rw-r--r--layouts/_default/baseof.html1
-rw-r--r--layouts/posts/list.html8
-rw-r--r--layouts/posts/single.html15
-rw-r--r--layouts/recipes/list.html4
-rw-r--r--layouts/recipes/single.html6
5 files changed, 20 insertions, 14 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 42203d2..09ae79a 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -10,6 +10,7 @@
<link rel="me" href="https://git.tyil.nl">
<link rel="me" href="https://sr.ht/~tyil">
<link rel="me" href="mailto:p.spek@tyil.nl">
+ <link rel="me" href="https://www.tyil.nl" class="h-card">
{{- range .AlternativeOutputFormats }}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" href="{{ .Permalink }}">
{{- end }}
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/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/recipes/list.html b/layouts/recipes/list.html
index de18df0..b758a2b 100644
--- a/layouts/recipes/list.html
+++ b/layouts/recipes/list.html
@@ -10,11 +10,11 @@
</div>
<div class="description">
<h2>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
+ <a class="p-name" href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
<ul class="taglist">
{{- range sort .Params.tags }}
- <li><a class="tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
+ <li><a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
{{- end }}
</ul>
{{ .Content }}
diff --git a/layouts/recipes/single.html b/layouts/recipes/single.html
index c4876a9..4ce7822 100644
--- a/layouts/recipes/single.html
+++ b/layouts/recipes/single.html
@@ -5,10 +5,10 @@
{{ define "main" }}
<article>
<header>
- <h1>{{ .Title }}</h1>
+ <h1 class="p-name">{{ .Title }}</h1>
<ul class="taglist">
{{- range sort .Params.tags }}
- <li><a class="tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
+ <li><a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
{{- end }}
</ul>
{{- if .Draft }}
@@ -28,7 +28,7 @@
</section>
{{- end }}
</header>
- <main>
+ <main class="e-content">
{{ .Content }}
<table>
<tbody>