summaryrefslogtreecommitdiffstats
path: root/layouts/_default/home.manifest.webmanifest
blob: b805c28b31a9026cb0c62e13329e50a1256f1218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  "name": {{ site.Title | htmlUnescape | jsonify }},
  {{ with site.Params.tagline }}"short_name": {{ . | htmlUnescape | jsonify }},{{end}}
  {{with site.Params.description}}"description": {{ . | htmlUnescape | jsonify }},{{end}}
  {{ with site.LanguageCode }}"lang": {{ . | jsonify }},{{ end }}
  "start_url": "/index.html",
  "display": "fullscreen",
  "orientation": "natural",
  "dir": "ltr",
  "shortcuts": [ {{ range $index, $m := site.Menus.main }} {{ if or (lt .Weight 900) site.IsServer }}
    {{ if $index }}, {{ end }}
    {
      "name": {{ $m.Name | jsonify}},
      "short_name" : {{ $m.Identifier | jsonify}},
      "url": {{ $m.URL | jsonify }}
    }{{ end}}{{ end}}
  ],
  "icons": [{{ $t := slice 192 512}}{{ range $t }}
    {
      "src": "/img/yy{{.}}.png",
      "type": "image/png",
      "sizes": "{{.}}x{{.}}"
    }{{ if ne . 512 }},{{end }}{{- end}}
  ]
}