From 344b004dd94c60df35663de8c75ae0697b3d95db Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 22 May 2022 21:30:45 +0200 Subject: Rework setting title logic --- layouts/_default/list.json.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default/list.json.json') 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 }} -- cgit v1.2.3