Skip to content

Commit c2fe249

Browse files
committed
fix(theme): Move mask-icon outside show_meta_app_icon_tags guard
why: mask-icon (Safari pinned tab) should be independently configurable via theme_mask_icon option without requiring all app icon meta tags to be enabled (show_meta_app_icon_tags). what: - Remove mask-icon from inside show_meta_app_icon_tags conditional block - Add standalone {%- if theme_mask_icon %} block at end of extrahead
1 parent d8c3f6c commit c2fe249

File tree

1 file changed

+3
-3
lines changed
  • packages/sphinx-gptheme/src/sphinx_gptheme/theme

1 file changed

+3
-3
lines changed

packages/sphinx-gptheme/src/sphinx_gptheme/theme/page.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@
6767
<meta name="apple-mobile-web-app-title" content="{{ theme_project_name }}">
6868

6969
<link rel="apple-touch-icon" sizes="192x192" href="/_static/img/icons/icon-192x192.png">
70-
{%- if theme_mask_icon %}
71-
<link rel="mask-icon" href="{{ theme_mask_icon }}" color="grey">
72-
{%- endif %}
7370

7471
<!-- Microsoft -->
7572
<meta name="msapplication-TileColor" content="#ffffff">
7673
<meta name="msapplication-TileImage" content="/_static/img/icons/ms-icon-144x144.png">
7774
{% endif -%}
75+
{%- if theme_mask_icon %}
76+
<link rel="mask-icon" href="{{ theme_mask_icon }}" color="grey">
77+
{%- endif %}
7878
{% endblock %}

0 commit comments

Comments
 (0)