From 0b6c265223b241b6292a83e30190865d36547f8d Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sun, 30 Oct 2022 14:49:52 -0700 Subject: [PATCH] schema.org: use more subtypes of "WebPage" - Set "Articles" and "Notes" to "CollectionPage" - Set "About" to "AboutPage" and "ProfilePage" Since my "About" page now has two types, I had to alter the "stype" page property to require a full URL. --- content/_index.md | 2 +- content/about/_index.md | 1 + content/notes/_index.md | 1 + content/posts/_index.md | 1 + layouts/_default/baseof.html | 4 ++-- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/content/_index.md b/content/_index.md index 3988600..d4f47e6 100644 --- a/content/_index.md +++ b/content/_index.md @@ -8,7 +8,7 @@ title: Seirdy's Home sitemap: - ChangeFreq: weekly - Priority: 0.9 -stype: "WebSite" +stype: "https://schema.org/WebSite" --- About me -------- diff --git a/content/about/_index.md b/content/about/_index.md index 1a1c7c6..0ef2d21 100644 --- a/content/about/_index.md +++ b/content/about/_index.md @@ -5,6 +5,7 @@ outputs: - html - gemtext description: "Get to know Rohan Kumar, also known as Seirdy. Contact info, my projects, interests, online accounts, etc." +stype: "https://schema.org/AboutPage https://schema.org/ProfilePage" ---
diff --git a/content/notes/_index.md b/content/notes/_index.md index b8a2347..5cab111 100644 --- a/content/notes/_index.md +++ b/content/notes/_index.md @@ -5,6 +5,7 @@ title: "Notes" sitemap: ChangeFreq: daily Priority: 0.8 +stype: "https://schema.org/CollectionPage" --- Notes ===== diff --git a/content/posts/_index.md b/content/posts/_index.md index 74d8144..e7dfbcc 100644 --- a/content/posts/_index.md +++ b/content/posts/_index.md @@ -5,6 +5,7 @@ title: "Articles" sitemap: ChangeFreq: weekly Priority: 0.7 +stype: "https://schema.org/CollectionPage" --- Articles ======== diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2ab9f9e..6fd042f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,11 @@ {{ partial "head.html" . -}} -{{- $stype := "WebPage" -}} +{{- $stype := "https://schema.org/WebPage" -}} {{- with .Params.stype -}} {{- $stype = . -}} {{- end -}} - + {{ partial "header.html" . -}} {{- block "main" . }}{{- end -}} {{ partial "footer.html" . }}