1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +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 - gemtext
footnote_heading: Notes footnote_heading: Notes
featured: 4 featured: 4
techarticle: true articleType: "TechArticle"
title: "The right thing for the wrong reasons: FLOSS doesn't imply security" title: "The right thing for the wrong reasons: FLOSS doesn't imply security"
--- ---
<section role="doc-preface" itemprop="backstory"> <section role="doc-preface" itemprop="backstory">

View file

@ -8,10 +8,9 @@ outputs:
tags: tags:
- git - git
- foss - foss
techarticle: true articleType: "TechArticle"
title: "Resilient Git, Part 0: Introduction" title: "Resilient Git, Part 0: Introduction"
--- ---
<div itemprop="backstory"> <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. 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: tags:
- git - git
- foss - foss
techarticle: true articleType: "TechArticle"
title: "Resilient Git, Part 1: Hydra Hosting" title: "Resilient Git, Part 1: Hydra Hosting"
--- ---
<div role="note"> <div role="note">

View file

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

View file

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

View file

@ -1,7 +1,7 @@
{{- define "main" -}} {{- define "main" -}}
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }} {{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
{{- .Scratch.Set "codeIndex" 1 -}} {{- .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 }}/" /> <link itemprop="isPartOf" href="{{ .Site.Params.CanonicalBaseURL }}/" />
{{ partial "full-article.html" . }} {{ partial "full-article.html" . }}
{{ partial "webmentions.html" . }} {{ partial "webmentions.html" . }}