Move all layouts to platters theme

This commit is contained in:
Eryn Wells 2024-10-07 21:39:17 -07:00
parent de8101efed
commit 66adceaf24
91 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<entry>
{{ partial "atom_entry_metadata.xml" . }}
{{- if .Content -}}
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
{{- end -}}
</entry>

View file

@ -0,0 +1,19 @@
{{ define "header" }}
{{ partial "header.html" . }}
{{ end }}
{{ define "main" }}
{{- range .Pages.ByDate.GroupByDate "2006" -}}
<h1 class="date"><a id="{{ .Key }}">{{ .Key | title }}</a></h1>
{{- range .Pages -}}
{{- if or (not .Draft) (not hugo.IsProduction) -}}
{{- .Render "li_grid_with_date" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{ end }}
{{ define "footer" }}
{{ partial "footer.html" . }}
{{ end }}

View file

@ -0,0 +1,6 @@
<item>
{{ partial "rss_item_metadata.rss" . }}
<description>{{ `<![CDATA[` | safeHTML }}
{{ .Content }}
]]></description>
</item>

View file

@ -0,0 +1,29 @@
{{- $pctx := . -}}
{{- if .IsHome -}} {{ $pctx = .Site }} {{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ .Site.Title }}</title>
<link href="{{ .Permalink }}" />
<link href="{{ `/feed.atom` | absURL }}" rel="self" />
<link href="{{ `/icons/favicon.png` | absURL }}" rel="shortcut icon" />
{{ if not .Date.IsZero }}<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
<id>{{ .Permalink }}</id>
{{ with .Site.Author.name }}
<author>
<name>{{ . }}</name>
{{ with $.Site.Author.email }}<email>{{ . }}</email>{{ end }}
<uri>{{ $.Site.Home.Permalink }}</uri>
</author>
{{ end }}
<generator version="{{ hugo.Version }}" uri="https://gohugo.io">Hugo {{ hugo.Version }}</generator>
<rights>© 2020-{{ now.Year }} Eryn Wells</rights>
{{ range $pages }}{{ .Render "atom_entry" }}{{ end }}
</feed>