Layout updates

This commit is contained in:
Hazem Krimi
2024-05-05 16:14:33 +01:00
parent 23e1d62948
commit 43541f851e
21 changed files with 55 additions and 101 deletions
-12
View File
@@ -30,12 +30,10 @@
{{- end }}
{{- end }}
{{- $projectsPages := where .Site.RegularPages "Section" "projects" }}
{{- $blogPages := where .Site.RegularPages "Section" "blog" }}
{{- $limit := .Site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{- $projectsPages = $projectsPages | first $limit }}
{{- $blogPages = $blogPages | first $limit }}
{{- end }}
@@ -54,16 +52,6 @@
{{- with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end }}
{{- range $projectsPages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
<description>{{ .Params.description | html }}</description>
</item>
{{- end }}
{{- range $blogPages }}
<item>
<title>{{ .Title }}</title>