diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-14 15:30:44 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-14 15:38:50 +0200 |
| commit | 23d77288040ca113dbc797aa2eaff6ba2a32f324 (patch) | |
| tree | c14a8417684dd54ea7425f7bc64d52d315973ad4 /layouts/_default/list.jsonfeed.json | |
| parent | 77b73fceb49bff397dab6badb7df8e821960fe2b (diff) | |
| download | gohugo-theme-ed-23d77288040ca113dbc797aa2eaff6ba2a32f324.tar.gz | |
Move site author configuration to params
Diffstat (limited to 'layouts/_default/list.jsonfeed.json')
| -rw-r--r-- | layouts/_default/list.jsonfeed.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/list.jsonfeed.json b/layouts/_default/list.jsonfeed.json index f6b89cc..29c9bf4 100644 --- a/layouts/_default/list.jsonfeed.json +++ b/layouts/_default/list.jsonfeed.json @@ -14,6 +14,8 @@ {{- $limit := site.Params.feedSize | default 25 -}} {{- $pages = $pages | first $limit -}} +{{- $siteAuthor := partial "site-author.html" . -}} + { "version": "https://jsonfeed.org/version/1.1", "title": {{ (partial "title.html" .) | htmlUnescape | jsonify }}, @@ -23,9 +25,9 @@ {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png") }}{{ $logo = $logo.Resize "96x96" }} "icon": {{ $logo.Permalink | jsonify }}, "favicon": {{ $logo.Permalink | jsonify }}, - {{ with site.Author.name }}"authors": [ + {{ with $siteAuthor.name }}"authors": [ { - "name": {{ . | jsonify }}{{ with site.Author.twitter }}, + "name": {{ . | jsonify }}{{ with $siteAuthor.twitter }}, "url": {{ (printf "https://twitter.com/%s" . ) | jsonify }}{{ end }} } ],{{ end }} |
