Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 97af3b3

Browse files
committedApr 29, 2021
Add Apple touch icons and MS tile icon
1 parent db55f3a commit 97af3b3

6 files changed

+19
-0
lines changed
 

‎python_docs_theme/layout.html

+11
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,18 @@
3636
{% endblock %}
3737

3838
{% block extrahead %}
39+
{# Place icon files in the root if possible (let browsers look for them where they expect them to be) #}
3940
<link rel="icon" type="image/x-icon" href="{{ pathto('_static/' + theme_root_favicon, 1) }}" />
41+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ pathto('_static/' + theme_apple_touch_icon_144x144, 1) }}" />
42+
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ pathto('_static/' + theme_apple_touch_icon_72x72, 1) }}" />
43+
<link rel="apple-touch-icon-precomposed" href="{{ pathto('_static/' + theme_apple_touch_icon, 1) }}" />
44+
<link rel="apple-touch-icon" href="{{ pathto('_static/' + theme_apple_touch_icon, 1) }}" />
45+
46+
{# Tile icon for Win8 (icon + tile color) #}
47+
<meta name="msapplication-TileImage" content="{{ pathto('_static/' + theme_msapplication_tileimage, 1) }}">
48+
<meta name="msapplication-TileColor" content="{{ theme_msapplication_tilecolor }}">
49+
<meta name="msapplication-navbutton-color" content="{{ theme_msapplication_tilecolor }}">
50+
4051
{% if builder != "htmlhelp" %}
4152
{% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
4253
{% endif %}
Loading
Loading
Loading
3.61 KB
Loading

‎python_docs_theme/theme.conf

+8
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ root_url = https://www.python.org/
3030
root_favicon = favicon.ico
3131
root_icon = py.png
3232
root_include_title = True
33+
34+
apple_touch_icon_144x144 = apple-touch-icon-144x144-precomposed.png
35+
apple_touch_icon_72x72 = apple-touch-icon-72x72-precomposed.png
36+
apple_touch_icon = apple-touch-icon-precomposed.png
37+
38+
msapplication_tileimage = metro-icon-144x144.png
39+
msapplication_tilecolor = #3673a5
40+
msapplication_navbutton_color = #3673a5

0 commit comments

Comments
 (0)
Please sign in to comment.