diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2019-10-05 19:43:56 +0300 |
---|---|---|
committer | Mantas Vilčinskas <hi@mnts.lt> | 2019-10-05 19:43:56 +0300 |
commit | 19d5be70f84c21011869b6c8340a0589f353beb8 (patch) | |
tree | c90c955e9ab6845d3e9c703622e6b7b974b2507e /layouts/index.json | |
parent | f8bda4294a3fa9af533ca7ab8753663aed7aa7d1 (diff) |
Added API for index, fully added #43 with tweaks to yrly archive
Diffstat (limited to 'layouts/index.json')
-rw-r--r-- | layouts/index.json | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/layouts/index.json b/layouts/index.json new file mode 100644 index 0000000..2495f60 --- /dev/null +++ b/layouts/index.json @@ -0,0 +1,39 @@ +{ + "version": "4.0", + "title": "{{ .Site.Title }}", + "languageCodeHTML": "{{ .Site.LanguageCode }}", + "languageCode": "{{ T "languageCode" }}", + "languageCode": "{{ T "languageCode" }}", + "baseURL": "{{ .Site.BaseURL }}", + "description": "{{ .Site.Params.Description }}", + "logo": "{{ .Site.Params.logo | absURL }}", + "categories": [ + {{ range $i, $e := .Site.Params.categories }}{{ if $i }},{{ end }} + { + "name": "{{ .name }}",{{ if .description }} + "description": "{{ .description }}",{{ end }} + "hideTitle": "{{ .untitled }}", + "closedByDefault": "{{ .closed }}" + } + {{ end }} + ], + "systems": [ + {{ range $i, $e := .Site.Params.systems }}{{ if $i }},{{ end }} + { + "name": "{{ .name }}",{{ if .description }} + "description": "{{ .description }}",{{ end }} + "category": "{{ .category }}", + "hideTitle": "{{ .untitled }}", + "closedByDefault": "{{ .closed }}" + } + {{ end }} + ], + + "colorBrand": "{{ .Site.Params.Brand }}", + "colorOk": "{{ .Site.Params.Ok }}", + "colorDisrupted": "{{ .Site.Params.Disrupted }}", + "colorDown": "{{ .Site.Params.Down }}", + "colorNotice": "{{ .Site.Params.Notice }}", + "alwaysKeepBrandColor": "{{ .Site.Params.alwaysKeepBrandColor }}", + "googleAnalytics": "{{ .Site.Params.googleAnalytics }}" +}
\ No newline at end of file |