From d852896c613f5df78c413502d0589ec4b80a37f5 Mon Sep 17 00:00:00 2001 From: xenofem Date: Thu, 25 Jan 2024 12:57:05 -0500 Subject: [PATCH] add basic web app manifest, maybe this is enough to 'install' as standalone? --- dlibrary/static/icons/app/icon-192.png | Bin 0 -> 312 bytes dlibrary/static/icons/app/icon-512.png | Bin 0 -> 338 bytes dlibrary/static/manifest.json | 20 ++++++++++++++++++++ dlibrary/templates/base.html | 1 + 4 files changed, 21 insertions(+) create mode 100644 dlibrary/static/icons/app/icon-192.png create mode 100644 dlibrary/static/icons/app/icon-512.png create mode 100644 dlibrary/static/manifest.json diff --git a/dlibrary/static/icons/app/icon-192.png b/dlibrary/static/icons/app/icon-192.png new file mode 100644 index 0000000000000000000000000000000000000000..18c4ee33148e43ae7a22e580b6b77f0d8f7d6a25 GIT binary patch literal 312 zcmeAS@N?(olHy`uVBq!ia0vp^2SAt+NHA0_4_pPL6p}rHe1SYQ28M z45bDP46hOx7_4S6Fo+k-*%fF5lweBoc6VW5yxS$b1ju7A@$_|Nf59jzC?!`|!XpY4 zlJRtL42d}W_MjoiibD&&`secUF90$b9$aS-I>5ll@ozrJ6{;n!5hW>!C8<`)MX5lF z!N|bKMAyJj*T^))(A>(%%*xn6+rYrez(B}a5a<#l4Y~O#nQ4`{H6*94>;Y=ffZI@# dnVVW%l9*e7TaQU`M=($igQu&X%Q~loCIH}%P8|RM literal 0 HcmV?d00001 diff --git a/dlibrary/static/icons/app/icon-512.png b/dlibrary/static/icons/app/icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..727d2185cebc8f310848822b70d475b45021676d GIT binary patch literal 338 zcmeAS@N?(olHy`uVBq!ia0y~yU;;9k7#M*h!yV?A;Xq0u*(1o8fuTx`fuW&=f#DZW zsNn?zL#Y7+!>a@a2CEqi4B`cIb_Lo1C76=D-CYOJbhi+Uoc7vN@=Sf zKVb$GGV^qC45_&F_8=q3iYA5s>+?Juz_tOoxIm3`69WTda%lj_P}LIGh?11Vl2ohY zqEsNoU}RuqqHAENYh)T?Xl`X>W@TcmZD3$!V4x|+v;{>&ZhlH;S|x4`5#GBvfEqO5 fHk4%MrWThZ<`&@A!yh;MI>_Cgu6{1-oD!M<){9Hb literal 0 HcmV?d00001 diff --git a/dlibrary/static/manifest.json b/dlibrary/static/manifest.json new file mode 100644 index 0000000..f7c582e --- /dev/null +++ b/dlibrary/static/manifest.json @@ -0,0 +1,20 @@ +{ + "name": "DLibrary", + "start_url": "../index.html", + "display": "standalone", + "orientation": "any", + "theme_color": "#111", + "background_color": "#111", + "icons": [ + { + "src": "icons/app/icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/app/icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/dlibrary/templates/base.html b/dlibrary/templates/base.html index 1fb0b0a..74d4a7c 100644 --- a/dlibrary/templates/base.html +++ b/dlibrary/templates/base.html @@ -6,6 +6,7 @@ {% block title %}{% if title %}{{ title }} - {% else %}{% endif %}DLibrary{% endblock %} + {% block head %}{% endblock %}