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

Allow custom article schema.org types

This commit is contained in:
Rohan Kumar 2022-07-01 17:12:08 -07:00
parent a8057aa8e8
commit 1a3800ad60
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
6 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@ outputs:
- gemtext
footnote_heading: Notes
featured: 4
techarticle: true
articleType: "TechArticle"
title: "The right thing for the wrong reasons: FLOSS doesn't imply security"
---
<section role="doc-preface" itemprop="backstory">

View file

@ -8,10 +8,9 @@ outputs:
tags:
- git
- foss
techarticle: true
articleType: "TechArticle"
title: "Resilient Git, Part 0: Introduction"
---
<div itemprop="backstory">
Recently, GitHub re-instated the [youtube-dl git repository](https://github.com/ytdl-org/youtube-dl) after following a takedown request by the RIAA under the DMCA. Shortly after the takedown, many members of the community showed great interest in "decentralizing git" and setting up a more resilient forge. What many of these people fail to understand is that the Git-based project setup is designed to support decentralization by being fully distributed.

View file

@ -8,7 +8,7 @@ outputs:
tags:
- git
- foss
techarticle: true
articleType: "TechArticle"
title: "Resilient Git, Part 1: Hydra Hosting"
---
<div role="note">

View file

@ -1,7 +1,8 @@
---
title: "Two types of privacy"
date: 2022-06-25T15:25:14-07:00
techarticle: true
lastMod: 2022-06-26T01:00:43-07:00
articleType: "TechArticle"
outputs:
- html
- gemtext

View file

@ -17,7 +17,7 @@ sitemap:
featured: 2
image: "serenity-4x.png"
image_alt: "Retro-looking browser with bitmap fonts showing this article's \"code snippet 4\"."
techarticle: true
articleType: "TechArticle"
evergreen: true
title: "Best practices for inclusive textual websites"
---

View file

@ -1,7 +1,7 @@
{{- define "main" -}}
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
{{- .Scratch.Set "codeIndex" 1 -}}
<main itemprop="mainEntity" itemscope="" itemtype="https://schema.org/BlogPosting{{ if .Params.techarticle }} https://schema.org/TechArticle{{ end }}" itemid="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
<main itemprop="mainEntity" itemscope="" itemtype="https://schema.org/BlogPosting{{ with .Params.articleType }} https://schema.org/{{ . }}{{ end }}" itemid="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
<link itemprop="isPartOf" href="{{ .Site.Params.CanonicalBaseURL }}/" />
{{ partial "full-article.html" . }}
{{ partial "webmentions.html" . }}