mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Fix code snippet numbering in feeds
This commit is contained in:
parent
ca16240b39
commit
add67b2e0c
2 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,7 @@
|
||||||
{{ range $pages -}}
|
{{ range $pages -}}
|
||||||
{{- if not .Params.Private -}}
|
{{- if not .Params.Private -}}
|
||||||
<entry>
|
<entry>
|
||||||
|
{{- .Page.Scratch.Set "codeIndex" 1 -}}
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link rel="alternate" type="text/html" href="{{ .Permalink }}" />
|
<link rel="alternate" type="text/html" href="{{ .Permalink }}" />
|
||||||
<id>{{ .Permalink }}</id>
|
<id>{{ .Permalink }}</id>
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range $pages }}
|
{{ range $pages }}
|
||||||
<item>
|
<item>
|
||||||
|
{{- .Page.Scratch.Set "codeIndex" 1 -}}
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
|
|
Loading…
Reference in a new issue