From 5d8a5c6071b2fd528d3717156921522e2ce4bd68 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 23 May 2022 17:37:03 +0300 Subject: Fix icons path for webmanifest --- layouts/_default/home.manifest.webmanifest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/home.manifest.webmanifest b/layouts/_default/home.manifest.webmanifest index 50e501f..7c215eb 100644 --- a/layouts/_default/home.manifest.webmanifest +++ b/layouts/_default/home.manifest.webmanifest @@ -3,11 +3,11 @@ "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 }} + {{ with site.LanguageCode }}"lang": {{ . | jsonify }}, + "dir": "ltr", {{/* TODO: Get dir from lang */}}{{ end }} "start_url": "/index.html", "display": "fullscreen", "orientation": "natural", - "dir": "ltr", {{/* TODO: Get dir from lang */}} "shortcuts": [ {{ range $index, $m := site.Menus.main }} {{ if or (lt .Weight 900) site.IsServer }} {{ if $index }}, {{ end }} { @@ -18,7 +18,7 @@ ], "icons": [{{ $t := slice 192 512 }}{{ range $t }} { - "src": "/img/icon-{{.}}.png", + "src": "/icon-{{.}}.png", "type": "image/png", "sizes": "{{.}}x{{.}}" }{{ if ne . 512 }},{{ end }}{{- end }} -- cgit v1.2.3