diff options
| author | Franck Cuny <franck@fcuny.net> | 2023-12-03 13:14:59 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2023-12-03 13:14:59 -0800 |
| commit | 45f8e2d134e3dd716c5a47d15ab55266cb354ec9 (patch) | |
| tree | bfb29152a651e6693bce077620b2760e3de38cda /layouts/index.atom.xml | |
| parent | chore: update flake (#12) (diff) | |
| download | fcuny.net-45f8e2d134e3dd716c5a47d15ab55266cb354ec9.tar.gz | |
add `treefmt` and `pre-commit-hooks`
I can now run `nix fmt` or `nix flake check` to check the syntax for
various files in this repository.
Fixed a deprecation warning for `hugo`:
```
> WARN The author key in site configuration is deprecated. Use params.author.email instead.
> WARN The author key in site configuration is deprecated. Use params.author.name instead.
```
Diffstat (limited to 'layouts/index.atom.xml')
| -rw-r--r-- | layouts/index.atom.xml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml index 1d73f9b..a80fc53 100644 --- a/layouts/index.atom.xml +++ b/layouts/index.atom.xml @@ -2,20 +2,28 @@ <title>{{ .Site.Title }}</title> <link href="{{ .Permalink }}feed.xml" rel="self"/> <link href="{{ .Permalink }}"/> - <id>{{ .Permalink }}</id>{{ with .Site.Author.name }} + <id>{{ .Permalink }}</id> + + {{ with .Site.Params.Author.name }} <author> - <name>{{.}}</name>{{ with $.Site.Author.email }} - <email>{{.}}</email>{{end}} - </author>{{end}} + <name>{{.}}</name> + {{ with $.Site.Params.Author.email }} + <email>{{.}}</email> + {{end}} + </author> + {{end}} + <generator>Hugo -- gohugo.io</generator> {{ range where (first 10 (where .Site.Pages "Section" "blog")) "Params.hidden" "ne" "true" }} <entry> {{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title> <link href="{{ .Permalink }}"/> - <id>{{ .Permalink }}</id>{{ with .Site.Params.Author }} + <id>{{ .Permalink }}</id> + {{ with .Site.Params.Author.name }} <author> <name>{{.}}</name> - </author>{{end}} + </author> + {{end}} {{- $fmt := "2006-01-02T15:04:05-07:00" }} <published>{{ .Date.Format $fmt | safeHTML }}</published> {{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content> |
