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

Fix code snippet numbering in feeds

This commit is contained in:
Rohan Kumar 2023-11-27 14:59:13 -08:00
parent ca16240b39
commit add67b2e0c
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 2 additions and 0 deletions

View file

@ -56,6 +56,7 @@
{{ range $pages -}}
{{- if not .Params.Private -}}
<entry>
{{- .Page.Scratch.Set "codeIndex" 1 -}}
<title>{{ .Title }}</title>
<link rel="alternate" type="text/html" href="{{ .Permalink }}" />
<id>{{ .Permalink }}</id>

View file

@ -39,6 +39,7 @@
{{ end }}
{{ range $pages }}
<item>
{{- .Page.Scratch.Set "codeIndex" 1 -}}
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>