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:
parent
f0a3694023
commit
0b6c265223
5 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -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">
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
=====
|
=====
|
||||||
|
|
|
@ -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
|
||||||
========
|
========
|
||||||
|
|
|
@ -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" . }}
|
||||||
|
|
Loading…
Reference in a new issue