This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
mystic/themes/hueman/layout/pwa/index.ejs
2018-09-03 17:41:16 +10:00

21 lines
699 B
Plaintext

<% if (config.pwa) { %>
<%
var icon = config.pwa.manifest.body.icons.find(icon => icon.sizes === '152x152');
%>
<% if (icon) { %>
<link rel="icon" href="/<%= icon.src %>" />
<link rel="apple-touch-icon" href="/<%= icon.src %>" />
<meta name="msapplication-TileImage" content="/<%= icon.src %>" />
<% } %>
<meta name="msapplication-TileColor" content="<%= theme.customize.theme_color %>" />
<meta name="theme-color" content="<%= theme.customize.theme_color %>" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="<%= config.pwa.manifest.body.name %>" />
<% } %>