summaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/home.json.json12
1 files changed, 7 insertions, 5 deletions
diff --git a/layouts/_default/home.json.json b/layouts/_default/home.json.json
index 77f5f4d..87d580e 100644
--- a/layouts/_default/home.json.json
+++ b/layouts/_default/home.json.json
@@ -4,13 +4,15 @@
"home_page_url": {{ site.BaseURL | absURL | jsonify }},
{{ with .OutputFormats.Get "JSON" }}"feed_url": {{.Permalink | absURL | jsonify }},{{ end }}
{{ with site.Params.description}}"description": {{site.Params.description | jsonify}},{{end}}
- {{ $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }}{{ $logo = $logo.Resize "96x96" }}
+ {{- $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 }}"author":
- {
- "name": {{ . | jsonify }}
- },{{ end }}
+ {{ with site.Author.name }}"authors": [
+ {
+ "name": {{ . | jsonify }}{{ with site.Author.twitter }},
+ "url": {{ (printf "https://twitter.com/%s" . ) | jsonify }}{{ end }}
+ }
+ ],{{ end }}
{{ with site.LanguageCode }}"language" : "{{ . }}",{{ end }}{{ $feedsize := site.Params.feedSize | default 25 }}
"items": [{{ $r := first $feedsize (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections) }} {{ range $i, $ := $r }}{{ if $i }},{{ end }}
{