From 1aed7a66d4a1a3d768f644ab61d799a578ad8eca Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 30 May 2022 15:49:31 -0700 Subject: [PATCH] Switch to XHTML5 markup The site now has polygot markup and can handle both XHTML5 and HTML5 parsing rules. My staging site will be XHTML but my main site will be HTML5, just in case of parse errors. If other tools (e.g. LightHouse) end up supporting XHTML5, I'll consider switching the content-type to XHTML. --- Makefile | 8 +-- config.toml | 4 ++ content/_index.md | 8 +-- content/about/index.md | 6 +- content/posts/floss-security.md | 12 ++-- content/posts/git-workflow-1.md | 2 +- content/posts/password-strength.md | 2 +- .../posts/search-engines-with-own-indexes.md | 6 +- content/posts/website-best-practices.md | 48 +++++++------- ...whatsapp-and-the-domestication-of-users.md | 6 +- content/privacy.md | 6 +- content/resume/index.md | 8 +-- layouts/_default/baseof.html | 5 +- layouts/_default/bookmarks.html | 22 +++---- layouts/_default/notes.html | 8 +-- layouts/_default/single.html | 2 +- layouts/index.html | 2 +- layouts/notes/single.html | 4 +- layouts/partials/footer.html | 2 +- layouts/partials/full-article.html | 4 +- layouts/partials/head.html | 64 +++++++++---------- layouts/partials/header.html | 4 +- layouts/partials/post-meta.html | 4 +- layouts/partials/posts.html | 12 ++-- layouts/partials/processed-content.html | 13 ++-- layouts/partials/search.html | 6 +- layouts/partials/webmention-form.html | 10 +-- layouts/partials/webmentions.html | 10 +-- layouts/partials/webrings.html | 2 +- layouts/partials/wordcount.html | 4 +- layouts/posts/single.html | 4 +- layouts/shortcodes/codefigure.html | 2 +- layouts/shortcodes/image-figure.html | 4 +- layouts/shortcodes/indieweb-author.html | 2 +- layouts/shortcodes/indieweb-icon.html | 3 +- layouts/shortcodes/indieweb-person.html | 4 +- layouts/shortcodes/mention-work.html | 2 +- layouts/shortcodes/picture.html | 22 +++---- layouts/shortcodes/quotation.html | 2 +- layouts/shortcodes/quotecaption.html | 2 +- layouts/shortcodes/transcribed-image.html | 2 +- linter-configs/vnu_filter.jq | 5 ++ 42 files changed, 178 insertions(+), 170 deletions(-) diff --git a/Makefile b/Makefile index 0d7f1c4..b31fec8 100644 --- a/Makefile +++ b/Makefile @@ -128,10 +128,10 @@ deploy-prod: # linting and compression can happen in parallel .PHONY: deploy-staging deploy-staging: - @$(MAKE) HUGO_BASEURL=https://staging.seirdy.one HUGO_FLAGS='--gc' DOMAIN=staging.seirdy.one USER=deploy@seirdy.one OUTPUT_DIR=public_staging clean - @$(MAKE) HUGO_BASEURL=https://staging.seirdy.one HUGO_FLAGS='--gc' DOMAIN=staging.seirdy.one USER=deploy@seirdy.one OUTPUT_DIR=public_staging hugo - @$(MAKE) HUGO_BASEURL=https://staging.seirdy.one HUGO_FLAGS='--gc' DOMAIN=staging.seirdy.one USER=deploy@seirdy.one OUTPUT_DIR=public_staging lint-local compress - @$(MAKE) HUGO_BASEURL=https://staging.seirdy.one HUGO_FLAGS='--gc' DOMAIN=staging.seirdy.one USER=deploy@seirdy.one OUTPUT_DIR=public_staging deploy + @$(MAKE) HUGO_FLAGS='--gc' DOMAIN=staging.seirdy.one USER=deploy@seirdy.one OUTPUT_DIR=public_staging clean + @$(MAKE) HUGO_FLAGS='--gc' DOMAIN=staging.seirdy.one USER=deploy@seirdy.one OUTPUT_DIR=public_staging hugo + @$(MAKE) HUGO_FLAGS='--gc' DOMAIN=staging.seirdy.one USER=deploy@seirdy.one OUTPUT_DIR=public_staging compress + @$(MAKE) HUGO_FLAGS='--gc' DOMAIN=staging.seirdy.one USER=deploy@seirdy.one OUTPUT_DIR=public_staging deploy .PHONY: deploy-onion deploy-onion: diff --git a/config.toml b/config.toml index 509e529..5f3ad6d 100644 --- a/config.toml +++ b/config.toml @@ -74,6 +74,7 @@ disableKinds = ["taxonomy", "term"] notes = "/notes/:year/:month/:day/:filename" [markup.goldmark.renderer] + xhtml = true unsafe = true [markup.tableOfContents] @@ -102,6 +103,9 @@ disableKinds = ["taxonomy", "term"] baseName="atom" isPlainText = true mediaType = "application/xml" + + [outputformats.html] + mediaType = "application/xhtml+xml" [outputs] home = ["HTML", "atom", "GEMTEXT", "RSS"] diff --git a/content/_index.md b/content/_index.md index 251c6a5..52da623 100644 --- a/content/_index.md +++ b/content/_index.md @@ -8,9 +8,9 @@ sitemap: - ChangeFreq: weekly - Priority: 0.9 --- -