diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 6 | ||||
-rw-r--r-- | layouts/posts/list.html | 8 | ||||
-rw-r--r-- | layouts/posts/single.html | 15 | ||||
-rw-r--r-- | layouts/recipes/list.html | 4 | ||||
-rw-r--r-- | layouts/recipes/single.html | 10 |
5 files changed, 25 insertions, 18 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 74338f3..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 }} 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 }} + — 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..353abd2 100644 --- a/layouts/recipes/single.html +++ b/layouts/recipes/single.html @@ -1,14 +1,10 @@ -{{ define "head" }} - <script type="text/javascript" src="/js/cookbook.js"></script> -{{- end }} - {{ 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 +24,7 @@ </section> {{- end }} </header> - <main> + <main class="e-content"> {{ .Content }} <table> <tbody> |