From f399e8f3bac7cbb1bdb117634810c6ac78295e05 Mon Sep 17 00:00:00 2001 From: jk Date: Fri, 1 May 2020 12:03:25 +0100 Subject: [PATCH] added indieweb headers and h tags to some pages --- themes/anatole/layouts/_default/baseof.html | 14 ++++++-------- themes/anatole/layouts/_default/list.html | 2 +- themes/anatole/layouts/_default/list.jp.html | 2 +- themes/anatole/layouts/_default/single.html | 19 +++++++++---------- themes/anatole/layouts/index.html | 6 +++--- themes/anatole/layouts/partials/footer.html | 6 +++++- themes/anatole/layouts/partials/head.html | 8 ++++++++ themes/anatole/static/css/style.css | 2 +- 8 files changed, 34 insertions(+), 25 deletions(-) diff --git a/themes/anatole/layouts/_default/baseof.html b/themes/anatole/layouts/_default/baseof.html index e5c6f803..397a5adc 100644 --- a/themes/anatole/layouts/_default/baseof.html +++ b/themes/anatole/layouts/_default/baseof.html @@ -1,17 +1,15 @@ {{- partial "head.html" . -}} - + +
{{- partial "sidebar.html" . -}} -
{{ partial "navbar.html" . }} -
-
- {{- block "main" . }}{{- end }} -
-
+
+
+ {{- block "main" . }}{{- end }} +
{{- partial "footer.html" . -}} -
diff --git a/themes/anatole/layouts/_default/list.html b/themes/anatole/layouts/_default/list.html index e4f864db..c226dc12 100644 --- a/themes/anatole/layouts/_default/list.html +++ b/themes/anatole/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+
{{if not (eq .Name "Blog")}}{{ .Name }}{{ end }}{{if eq .Name "Blog"}}All Blogs{{ end }}
    {{ range .Data.Pages.GroupByDate "2006" }} diff --git a/themes/anatole/layouts/_default/list.jp.html b/themes/anatole/layouts/_default/list.jp.html index 99308c6e..046929d3 100644 --- a/themes/anatole/layouts/_default/list.jp.html +++ b/themes/anatole/layouts/_default/list.jp.html @@ -1,5 +1,5 @@ {{ define "main" }} -
    +
    {{if not (eq .Name "Blog" "Categories" "Tags") }}{{ .Name }}{{ end }}{{if eq .Name "Blog"}}全部のブログ{{ end }}{{if eq .Name "Categories"}}カテゴリー{{ end }}{{if eq .Name "Tags"}}タグ{{ end }}
      diff --git a/themes/anatole/layouts/_default/single.html b/themes/anatole/layouts/_default/single.html index 6fb018c6..9b9aca55 100644 --- a/themes/anatole/layouts/_default/single.html +++ b/themes/anatole/layouts/_default/single.html @@ -1,19 +1,18 @@ {{ define "main" }} -
      -
      - {{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }} -
      -

      {{ .Title }}

      +
      + +
      {{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}

      {{ .Title }}

      {{ if eq .Type "post"}}
      - {{ .Date.Format "Mon, Jan 2, 2006" }} + {{ .ReadingTime }}-minute read -
      {{ end }}
      +
      {{ .Content }}
      - {{ .Content }} -