aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-06-18 18:32:33 -0400
committertdro <tdro@noreply.example.com>2023-06-18 18:32:33 -0400
commit84b2577f14e35168a58e65de29b8bb44ae5383f2 (patch)
tree8000d6625d80685f66c4663894e1e0eee903f7b9
parent6733028845af76c6f494da7a337ed8a9c9ceba47 (diff)
downloadcanory-84b2577f14e35168a58e65de29b8bb44ae5383f2.tar.gz
canory-84b2577f14e35168a58e65de29b8bb44ae5383f2.tar.bz2
canory-84b2577f14e35168a58e65de29b8bb44ae5383f2.zip
themes/default/layouts/_default/baseof: Move data-document to <html>
Check sitemap
-rw-r--r--Makefile7
-rw-r--r--assets/css/default.css4
-rw-r--r--themes/default/layouts/_default/baseof.html3
-rw-r--r--themes/default/layouts/_default/home.xslt.rss.xsl4
-rw-r--r--themes/default/layouts/_default/home.xslt.sitemap.xsl4
5 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 1be1d01..6262358 100644
--- a/Makefile
+++ b/Makefile
@@ -42,12 +42,13 @@ test-css:
assets/css/syntax-highlight-default.css
test-xsl:
- xsltproc \
- public/rss.xsl
+ xsltproc public/rss.xsl
+ xsltproc public/sitemap.xsl
test-xml:
xmllint --noout \
- public/rss.xml
+ public/rss.xml \
+ public/sitemap.xml
test-rss:
xmllint --noout --relaxng assets/schemas/rss-v2.0.rng public/rss.xml
diff --git a/assets/css/default.css b/assets/css/default.css
index ab83813..0f52186 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -912,8 +912,8 @@ body {
-webkit-text-size-adjust: none;
}
-body[data-document="html"],
-body[data-document="xhtml"] {
+html[data-document="html"] body,
+html[data-document="xhtml"] body {
display: flex;
margin: 0 auto;
max-width: 1250px;
diff --git a/themes/default/layouts/_default/baseof.html b/themes/default/layouts/_default/baseof.html
index e2b05fe..e9f8550 100644
--- a/themes/default/layouts/_default/baseof.html
+++ b/themes/default/layouts/_default/baseof.html
@@ -13,6 +13,7 @@
data-type="{{ .Page.Type }}"
itemscope=""
itemtype="http://schema.org/BlogPosting"
+ data-document="html"
>
<head>
<title>
@@ -23,7 +24,7 @@
{{- partial "base-head.html" . -}}
{{- block "styles" . -}}{{- end -}}
</head>
- <body data-document="html">
+ <body>
<skip-link>
<a href="#main">Skip to main content</a>
</skip-link>
diff --git a/themes/default/layouts/_default/home.xslt.rss.xsl b/themes/default/layouts/_default/home.xslt.rss.xsl
index 458e198..39a0af4 100644
--- a/themes/default/layouts/_default/home.xslt.rss.xsl
+++ b/themes/default/layouts/_default/home.xslt.rss.xsl
@@ -8,14 +8,14 @@
>
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" data-xml="">
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" data-xml="" data-document="xhtml">
<head>
{{ printf `<title><xsl:value-of select="/rss/channel/title"/> Web Feed</title>` | safeHTML }}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
{{- partial "base-css.html" . -}}
</head>
- <body data-document="xhtml">
+ <body>
<column-base position="left"></column-base>
<column-base position="middle">
<main>
diff --git a/themes/default/layouts/_default/home.xslt.sitemap.xsl b/themes/default/layouts/_default/home.xslt.sitemap.xsl
index 1c82427..4833a22 100644
--- a/themes/default/layouts/_default/home.xslt.sitemap.xsl
+++ b/themes/default/layouts/_default/home.xslt.sitemap.xsl
@@ -6,14 +6,14 @@
>
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" data-xml="sitemap">
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" data-xml="sitemap" data-document="xhtml">
<head>
<title>{{ $.Site.Title }} Site Map</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
{{- partial "base-css.html" . -}}
</head>
- <body data-document="xhtml">
+ <body>
<column-base position="left"></column-base>
<column-base position="middle">
<main>