增加ico文件

This commit is contained in:
2026-03-05 14:43:00 +08:00
parent 4cab051f9c
commit 6117222625
15 changed files with 288 additions and 28 deletions
+1
View File
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{.Title}} - {{.SiteName}}</title>
<meta name="description" content="{{.Description}}">
<link rel="icon" href="/static/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
+2 -2
View File
@@ -15,9 +15,9 @@
{{if .IsTop}}<span class="top-badge">置顶</span>{{end}}
</h2>
<div class="post-meta">
<span class="post-date">{{.PublishedAt.Format "2006-01-02"}}</span>
<span class="post-date">{{if .PublishedAt}}{{.PublishedAt.Format "2006-01-02"}}{{else}}未发布{{end}}</span>
<span class="post-category">
<a href="/?category={{.CategoryID}}">{{.Category.Name}}</a>
{{if .Category}}<a href="/?category={{.CategoryID}}">{{.Category.Name}}</a>{{else}}未分类{{end}}
</span>
{{if .Tags}}
<span class="post-tags">
+29
View File
@@ -30,6 +30,35 @@
</div>
</article>
<nav class="post-navigation">
<div class="nav-prev">
{{if .PrevPost}}
<a href="/post/{{.PrevPost.Slug}}" class="nav-link">
<span class="nav-label">← 上一篇</span>
<span class="nav-title">{{.PrevPost.Title}}</span>
</a>
{{else}}
<span class="nav-link disabled">
<span class="nav-label">← 上一篇</span>
<span class="nav-title">没有了</span>
</span>
{{end}}
</div>
<div class="nav-next">
{{if .NextPost}}
<a href="/post/{{.NextPost.Slug}}" class="nav-link">
<span class="nav-label">下一篇 →</span>
<span class="nav-title">{{.NextPost.Title}}</span>
</a>
{{else}}
<span class="nav-link disabled">
<span class="nav-label">下一篇 →</span>
<span class="nav-title">没有了</span>
</span>
{{end}}
</div>
</nav>
<section class="comments-section">
<h3>评论 ({{.CommentCount}})</h3>