mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Layout updates
This commit is contained in:
@@ -4,7 +4,4 @@
|
||||
<section>
|
||||
{{ .Content }}
|
||||
</section>
|
||||
|
||||
<h2>Contact</h2>
|
||||
{{ partial "contact-form.html" . }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "breadcrumb.html" . }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ partial "contact-form.html" . }}
|
||||
{{ end }}
|
||||
@@ -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>
|
||||
|
||||
@@ -30,9 +30,6 @@
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
<h2>Contact</h2>
|
||||
{{ partial "contact-form.html" . }}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user