mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02: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:
|
||||
- ChangeFreq: weekly
|
||||
- Priority: 0.9
|
||||
stype: "WebSite"
|
||||
stype: "https://schema.org/WebSite"
|
||||
---
|
||||
About me
|
||||
--------
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ title: "Notes"
|
|||
sitemap:
|
||||
ChangeFreq: daily
|
||||
Priority: 0.8
|
||||
stype: "https://schema.org/CollectionPage"
|
||||
---
|
||||
Notes
|
||||
=====
|
||||
|
|
|
@ -5,6 +5,7 @@ title: "Articles"
|
|||
sitemap:
|
||||
ChangeFreq: weekly
|
||||
Priority: 0.7
|
||||
stype: "https://schema.org/CollectionPage"
|
||||
---
|
||||
Articles
|
||||
========
|
||||
|
|
|
@ -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" . }}
|
||||
|
|
Loading…
Reference in a new issue