theme:增加Favicon,调整资源路径。

This commit is contained in:
徐涛
2021-04-13 10:53:26 +08:00
parent 44590b9760
commit 986feb9bb8
9 changed files with 24 additions and 1 deletions

View File

@@ -1,6 +1,21 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<%_ if (theme.favicon.xxlarge) { %>
<link rel="icon" href="<%= url_for(theme.favicon.xxlarge) %>" type="image/png" sizes="128x128">
<% } %>
<%_ if (theme.favicon.xlarge) { %>
<link rel="icon" href="<%= url_for(theme.favicon.xlarge) %>" type="image/png" sizes="64x64">
<% } %>
<%_ if (theme.favicon.large) { %>
<link rel="icon" href="<%= url_for(theme.favicon.large) %>" type="image/png" sizes="48x48">
<% } %>
<%_ if (theme.favicon.medium) { %>
<link rel="icon" href="<%= url_for(theme.favicon.medium) %>" type="image/png" sizes="32x32">
<% } %>
<%_ if (theme.favicon.small) { %>
<link rel="icon" href="<%= url_for(theme.favicon.small) %>" type="image/png" sizes="16x16">
<% } %>
<%- partial('partial/styles') -%>
<title><%= config.title %> - <%= config.subtitle %></title>
<%_ if (config.keyword) { -%>