mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Changing webmanifest scope.
This commit is contained in:
parent
4e559be2a4
commit
e2ea1dc8d3
4 changed files with 11 additions and 2 deletions
|
@ -29,7 +29,13 @@ def privacy(request):
|
|||
|
||||
def tos(request):
|
||||
return render(request, 'static/tos.xhtml')
|
||||
|
||||
|
||||
def webmanifest(request):
|
||||
filename = settings.MEDIA_ROOT + '/extensions/edge/manifest.json'
|
||||
manifest = open(filename).read()
|
||||
|
||||
return HttpResponse(manifest, content_type='application/manifest+json')
|
||||
|
||||
def apple_app_site_assoc(request):
|
||||
return render(request, 'static/apple_app_site_assoc.xhtml')
|
||||
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
"short_name": "NewsBlur",
|
||||
"description": "A personalized RSS news reader.",
|
||||
"display": "standalone",
|
||||
"id": ".",
|
||||
"start_url": ".",
|
||||
"scope": "https://newsblur.com/",
|
||||
"background_color": "#F6F8F0",
|
||||
"theme_color": "#F6F8F0",
|
||||
"icons": [
|
||||
|
|
|
@ -55,6 +55,7 @@ urlpatterns = [
|
|||
url(r'^feedback/?', static_views.feedback, name='feedback'),
|
||||
url(r'^privacy/?', static_views.privacy, name='privacy'),
|
||||
url(r'^tos/?', static_views.tos, name='tos'),
|
||||
url(r'^manifest.webmanifest', static_views.webmanifest, name='webmanifest'),
|
||||
url(r'^.well-known/apple-app-site-association', static_views.apple_app_site_assoc, name='apple-app-site-assoc'),
|
||||
url(r'^ios/download/?', static_views.ios_download, name='ios-download'),
|
||||
url(r'^ios/NewsBlur.plist', static_views.ios_plist, name='ios-download-plist'),
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<meta name="msapplication-TileImage" content="{{ MEDIA_URL }}img/logo_144.png" />
|
||||
<meta name="msapplication-TileColor" content="#F7E5A8"/>
|
||||
<meta name="apple-itunes-app" content="app-id=463981119">
|
||||
<link rel="manifest" href="/media/extensions/edge/manifest.json">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<!-- <link rel="mask-icon" href="{{ MEDIA_URL }}img/favicon_monochrome.svg" color="orange"> -->
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
|
Loading…
Add table
Reference in a new issue