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
-3
View File
@@ -4,7 +4,4 @@
<section>
{{ .Content }}
</section>
<h2>Contact</h2>
{{ partial "contact-form.html" . }}
{{ end }}
-7
View File
@@ -1,7 +0,0 @@
{{ define "main" }}
{{ partial "breadcrumb.html" . }}
{{ .Content }}
{{ partial "contact-form.html" . }}
{{ end }}
-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>
-3
View File
@@ -30,9 +30,6 @@
<div>
{{ .Content }}
</div>
<h2>Contact</h2>
{{ partial "contact-form.html" . }}
</section>
</div>