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

Add Indieweb/RDFa structured data

This commit is contained in:
Rohan Kumar 2020-12-28 16:56:52 -08:00
parent 8c63605d1a
commit 35642e698a
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
3 changed files with 25 additions and 16 deletions

View file

@ -1,6 +1,6 @@
# Seirdy
It me! This is the personal website of Seirdy (online handle), a.k.a. Rohan (meatspace).
It me! This is the personal website of Rohan Kumar, a.k.a. Seirdy (online handle).
## Other versions of this site

View file

@ -5,19 +5,22 @@ outputs:
title: Seirdy's Home
---
<div class="h-card">
Seirdy
======
It me! This is the personal website of Seirdy (online handle), a.k.a. Rohan
(meatspace).
It me! This is the personal website for
<a class="p-author u-url" href="https://seirdy.one" rel="home"><span class="p-given-name">Rohan</span>
<span class="p-family-name">Kumar</span></a>, a.k.a. Seirdy (online handle).
Other versions of this website
------------------------------
In addition to its <a href="https://seirdy.one" rel="me">canonical URL</a>, a "rough
draft" of this website also exists on my
<a href="https://envs.net/~seirdy" rel="me">Tildeverse page</a> and on my
<a href="gemini://seirdy.one" rel="me">Gemini space</a>
In addition to its <a class="u-url" href="https://seirdy.one" rel="me">canonical
URL</a>, a "rough draft" of this website also exists on my
<a class="u-url" href="https://envs.net/~seirdy" rel="me">Tildeverse page</a> and on
my <a class="u-url" href="gemini://seirdy.one" rel="me">Gemini space</a>
About me
--------
@ -31,10 +34,13 @@ Git repos: <a href="https://sr.ht/~seirdy" rel="me">Sourcehut</a>,
Contact
-------
Contact me via <a href="mailto:seirdy@seirdy.one" rel="me">email</a>, or on the
Fediverse via <a href="https://pleroma.envs.net/seirdy" rel="me">my Pleroma
Contact me via <a class="u-email" href="mailto:seirdy@seirdy.one" rel="me">email</a>,
or on the Fediverse via
<a class="u-url" href="https://pleroma.envs.net/seirdy" rel="me">my Pleroma
account</a>.
Chat with me: I prefer IRC, where my nick is usually Seirdy. Alternatively, I'm
<a href="https://matrix.to/\#/@seirdy:envs.net" rel="me">@seirdy:envs.net</a> on
Matrix.
<a class="u-url" href="https://matrix.to/#/@seirdy:envs.net" rel="me">@seirdy:envs.net</a>
on Matrix.
</div>

View file

@ -1,15 +1,18 @@
{{ define "main" }}
<article>
<article itemscope itemtype="https://schema.org/Article" class="h-entry">
<header id="post-header">
<h1>{{ .Title }}</h1>
<h1 itemprop="name headline" class="p-hame">{{ .Title }}</h1>
{{ $lastmod := .Lastmod -}}
{{ if lt .Date $lastmod -}}
Originally posted <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>. Last updated <time datetime="{{ $lastmod.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Lastmod.Format "2006-01-02" }}</time>. <a href="{{ .Site.Params.logUrlPrefix }}content/{{ .File.Path }}">Changelog</a>
Originally posted <time class="dt-published" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time> by <a itemprop="author" class="p-author h-card" href="https://seirdy.one" rel="author">{{ .Site.Author.name }}</a>.<br>
Last updated <time itemprop="dateModified" class="dt-updated" datetime="{{ $lastmod.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Lastmod.Format "2006-01-02" }}</time>. <a href="{{ .Site.Params.logUrlPrefix }}content/{{ .File.Path }}">Changelog</a>
{{ else -}}
Posted <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>.
Posted <time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>.
{{ end }}
</header>
{{ .Content -}}
<section itemprop="articlebody">
{{ .Content -}}
</section>
</article>
<br>
<hr>