1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +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:
- ChangeFreq: weekly
- Priority: 0.9
stype: "WebSite"
stype: "https://schema.org/WebSite"
---
About me
--------

View file

@ -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"
---
<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:
ChangeFreq: daily
Priority: 0.8
stype: "https://schema.org/CollectionPage"
---
Notes
=====

View file

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

View file

@ -1,11 +1,11 @@
<!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#">
{{ partial "head.html" . -}}
{{- $stype := "WebPage" -}}
{{- $stype := "https://schema.org/WebPage" -}}
{{- with .Params.stype -}}
{{- $stype = . -}}
{{- end -}}
<body itemscope="" itemtype="https://schema.org/{{ $stype }}">
<body itemscope="" itemtype="{{ $stype }}">
{{ partial "header.html" . -}}
{{- block "main" . }}{{- end -}}
{{ partial "footer.html" . }}