diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-22 21:30:45 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-22 21:30:45 +0200 |
| commit | 344b004dd94c60df35663de8c75ae0697b3d95db (patch) | |
| tree | 9868acf9e27aa1aeab37583a997cf03ef8a95f14 /layouts/_default/list.json.json | |
| parent | 4f3e41d2c9d78ebbab00cbba76fa3889420bb0aa (diff) | |
| download | gohugo-theme-ed-344b004dd94c60df35663de8c75ae0697b3d95db.tar.gz | |
Rework setting title logic
Diffstat (limited to 'layouts/_default/list.json.json')
| -rw-r--r-- | layouts/_default/list.json.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.json.json b/layouts/_default/list.json.json index 6151211..bfcb852 100644 --- a/layouts/_default/list.json.json +++ b/layouts/_default/list.json.json @@ -15,7 +15,7 @@ { "version": "https://jsonfeed.org/version/1.1", - "title": {{ (printf "%s JSON Feed" site.Title) | htmlUnescape | jsonify }}, + "title": {{ (printf "%s" (partial "title.html" .)) | htmlUnescape | jsonify }},{{/* TODO: Translate title */}} "home_page_url": {{ printf "%s?utm_source=json_feed" site.BaseURL | absURL | jsonify }}, {{ with .OutputFormats.Get "JSON" }}"feed_url": {{ .Permalink | absURL | jsonify }},{{ end }} {{ with site.Params.description}}"description": {{ site.Params.description | jsonify }},{{ end }} |
