Ver Fonte

feat(hugo): 添加 favicon 并调整导航栏 Logo 大小

Daily Deploy Bot há 18 horas atrás
pai
commit
cb10312bc0

+ 0 - 0
site/.hugo_build.lock


+ 2 - 0
site/layouts/_default/baseof.html

@@ -6,6 +6,8 @@
   <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title>
   <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
   <link rel="stylesheet" href="{{ "css/site.css" | relURL }}">
+  <link rel="icon" href="{{ "favicon.ico" | relURL }}" type="image/x-icon">
+  <link rel="apple-touch-icon" href="{{ "logo.png" | relURL }}">
 </head>
 <body>
   <header class="site-header">

+ 2 - 2
site/static/css/site.css

@@ -40,8 +40,8 @@ a:hover { text-decoration: underline; }
   letter-spacing: -0.02em;
 }
 .site-logo {
-  width: 48px;
-  height: 48px;
+  width: 24px;
+  height: 24px;
   border-radius: 50%;
   object-fit: cover;
 }

BIN
site/static/favicon.ico