1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

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.
This commit is contained in:
Rohan Kumar 2022-10-30 14:49:52 -07:00
parent f0a3694023
commit 0b6c265223
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
5 changed files with 6 additions and 3 deletions

View file

@ -8,7 +8,7 @@ title: Seirdy's Home
sitemap: sitemap:
- ChangeFreq: weekly - ChangeFreq: weekly
- Priority: 0.9 - Priority: 0.9
stype: "WebSite" stype: "https://schema.org/WebSite"
--- ---
About me About me
-------- --------

View file

@ -5,6 +5,7 @@ outputs:
- html - html
- gemtext - gemtext
description: "Get to know Rohan Kumar, also known as Seirdy. Contact info, my projects, interests, online accounts, etc." 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"
--- ---
<div itemscope="" itemprop="about" itemtype="https://schema.org/Person" itemid="https://seirdy.one/#seirdy" class="h-card vcard"> <div itemscope="" itemprop="about" itemtype="https://schema.org/Person" itemid="https://seirdy.one/#seirdy" class="h-card vcard">

View file

@ -5,6 +5,7 @@ title: "Notes"
sitemap: sitemap:
ChangeFreq: daily ChangeFreq: daily
Priority: 0.8 Priority: 0.8
stype: "https://schema.org/CollectionPage"
--- ---
Notes Notes
===== =====

View file

@ -5,6 +5,7 @@ title: "Articles"
sitemap: sitemap:
ChangeFreq: weekly ChangeFreq: weekly
Priority: 0.7 Priority: 0.7
stype: "https://schema.org/CollectionPage"
--- ---
Articles Articles
======== ========

View file

@ -1,11 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{- default "" .Site.LanguageCode }}" xml:lang="{{- default "" .Site.LanguageCode }}" prefix="og: https://ogp.me/ns# article: https://ogp.me/ns/article# cc: http://creativecommons.org/ns#"> <html xmlns="http://www.w3.org/1999/xhtml" lang="{{- default "" .Site.LanguageCode }}" xml:lang="{{- default "" .Site.LanguageCode }}" prefix="og: https://ogp.me/ns# article: https://ogp.me/ns/article# cc: http://creativecommons.org/ns#">
{{ partial "head.html" . -}} {{ partial "head.html" . -}}
{{- $stype := "WebPage" -}} {{- $stype := "https://schema.org/WebPage" -}}
{{- with .Params.stype -}} {{- with .Params.stype -}}
{{- $stype = . -}} {{- $stype = . -}}
{{- end -}} {{- end -}}
<body itemscope="" itemtype="https://schema.org/{{ $stype }}"> <body itemscope="" itemtype="{{ $stype }}">
{{ partial "header.html" . -}} {{ partial "header.html" . -}}
{{- block "main" . }}{{- end -}} {{- block "main" . }}{{- end -}}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}