From 854010c8c4778556e64422722986302a3298f861 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 1 Jun 2022 10:03:08 -0700 Subject: [PATCH] Remove unused "language-figure" class from feeds --- layouts/_default/list.atom.xml | 2 +- layouts/_default/rss.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 410b548..01b65cd 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -28,7 +28,7 @@ CC-BY-SA 4.0 by Rohan Kumar
- {{ partial "processed-content.html" . | replaceRE `(?: )?item(type|scope|prop|id|ref)="[^"]*"` "" | safeHTML }} + {{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | safeHTML }}
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 5c260b2..3ad34b9 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -35,7 +35,7 @@ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{- .Content | replaceRE `(?: )?item(type|scope|prop|id|ref)="[^"]*"` "" | html -}} + {{- .Content | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | html -}} {{ end }} {{ end }}