Browse Source

feat(hugo): 更新网站 Logo 和名称为 Indigo Floyd's Latent Garden

Daily Deploy Bot 18 giờ trước cách đây
mục cha
commit
5ed5f544c0
4 tập tin đã thay đổi với 15 bổ sung2 xóa
  1. 2 1
      site/hugo.yaml
  2. 4 1
      site/layouts/_default/baseof.html
  3. 9 0
      site/static/css/site.css
  4. BIN
      site/static/logo.png

+ 2 - 1
site/hugo.yaml

@@ -1,6 +1,6 @@
+title: Indigo Floyd's Latent Garden
 baseURL: https://example.com/
 languageCode: zh-CN
-title: IndigoFloyd
 summaryLength: 120
 defaultContentLanguage: zh-cn
 enableRobotsTXT: true
@@ -18,6 +18,7 @@ params:
   description: 个人站:收纳 AI 每日简报、博客和简历。
   owner: IndigoFloyd
   dailySection: ai-daily
+  logo: ./logo.png
 
 menu:
   main:

+ 4 - 1
site/layouts/_default/baseof.html

@@ -11,7 +11,10 @@
   <header class="site-header">
     <div class="wrap header-inner">
       <div>
-        <a class="site-title" href="{{ "/" | relURL }}">{{ .Site.Title }}</a>
+        <a class="site-title" href="{{ "/" | relURL }}">
+          <img src="{{ "logo.png" | relURL }}" alt="Logo" class="site-logo">
+          {{ .Site.Title }}
+        </a>
         <p class="site-tagline">{{ .Site.Params.description }}</p>
       </div>
       <nav class="site-nav">

+ 9 - 0
site/static/css/site.css

@@ -30,12 +30,21 @@ a:hover { text-decoration: underline; }
 .site-header { position: sticky; top: 0; backdrop-filter: blur(8px); background: rgba(255,255,255,0.85); border-bottom: 1px solid var(--border); }
 .header-inner { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; align-items: center; }
 .site-title {
+  display: flex;
+  align-items: center;
+  gap: 12px;
   font-family: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif;
   font-size: 1.4rem;
   font-weight: 700;
   color: var(--text);
   letter-spacing: -0.02em;
 }
+.site-logo {
+  width: 48px;
+  height: 48px;
+  border-radius: 50%;
+  object-fit: cover;
+}
 .site-tagline { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
 .site-nav { display: flex; gap: 16px; flex-wrap: wrap; }
 .site-nav a { color: var(--text); font-weight: 500; }

BIN
site/static/logo.png