assets/site.webmanifest in askclass-course-theme-0.7.3 vs assets/site.webmanifest in askclass-course-theme-0.8.0

- old
+ new

@@ -1,73 +1,53 @@ --- --- +{%- assign acc = site.acc -%} { - "background_color": "{{ site.acc.color.bg }}", - "theme_color": "{{ site.acc.color.theme }}", + "background_color": "{{ acc.color.bg }}", + "theme_color": "{{ acc.color.theme }}", "name": "{{ site.title }}", - "short_name": "{{ site.acc.short_name }}", - "categories": [ "{{ site.acc.categories | join: '","' }}" ], + "short_name": "{{ acc.short_name }}", + "categories": [ "{{ acc.categories | join: '","' }}" ], "display": "standalone", "scope": "/", "start_url": "/", "description": "{{ site.description | strip_newlines }}", "orientation": "portrait-primary", + "lang": "en", "dir": "auto", + {%- if acc.shortcuts %} + "shortcuts": [ + {%- for sc in acc.shortcuts %} + { + "name": "{{ sc.name }}", + "url": "{{ sc.url }}", + "description": "{{ sc.desc }}" + }{%- if forloop.index != forloop.length %},{%- endif %} + {%- endfor %} + ], + {%- endif %} "icons": [ + {%- for px in acc.logo.sizes %} { - "src": "logo-48.png", - "sizes": "48x48", + "src": "logo-{{px}}.png", + "sizes": "{{px}}x{{px}}", "type": "image/png", "purpose": "maskable" }, + {%- endfor %} { - "src": "logo-96.png", - "sizes": "96x96", - "type": "image/png", - "purpose": "maskable" - }, - { - "src": "logo-144.png", - "sizes": "144x144", - "type": "image/png", - "purpose": "maskable" - }, - { - "src": "logo-192.png", - "sizes": "192x192", - "type": "image/png", - "purpose": "maskable" - }, - { "src": "logo-300.png", "type": "image/png", "sizes": "300x300" }, { - "src": "logo-512.png", - "sizes": "512x512", - "type": "image/png", - "purpose": "maskable" - }, - { "src": "logo-icon.svg", "type": "image/svg+xml", "sizes": "any", "purpose": "any" } ], - "lang": "en", "display_override": [ "standalone", "fullscreen" - ], - "shortcuts": [ - { - icons: [ - "src": "/assets/logo-96.png" - ], - "name": "{{ site.acc.shortcut.name }}", - "url": "{{ site.acc.shortcut.url }}", - "description": "{{ site.acc.shortcut.desc }}" - } ] }