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

@ -2,3 +2,11 @@
less: less:
paths: [] paths: []
options: options:
# Favicon
favicon:
small: /images/favicon-16x16.png
medium: /images/favicon-32x32.png
large: /images/favicon-48x48.png
xlarge: /images/favicon-64x64.png
xxlarge: /images/favicon-128x128.png

View File

@ -1,6 +1,21 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <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') -%> <%- partial('partial/styles') -%>
<title><%= config.title %> - <%= config.subtitle %></title> <title><%= config.title %> - <%= config.subtitle %></title>
<%_ if (config.keyword) { -%> <%_ if (config.keyword) { -%>

View File

@ -1,5 +1,5 @@
body { body {
background: url(/img/scatterbg.svg); background: url(/images/scatterbg.svg);
min-height: 100vh; min-height: 100vh;
height: 100%; height: 100%;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB