chore: 初始化 Hugo 博客项目
Hextra 主题,8 篇文章,支持全文搜索/暗色模式
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header><h1><a href="/">{{ .Site.Title }}</a></h1></header>
|
||||
<main>{{ block "main" . }}{{ end }}</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
<ul>{{ range .Pages }}<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>{{ end }}</ul>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
<time>{{ .Date.Format "2006-01-02" }}</time>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,13 @@
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; line-height: 1.8; color: #333; }
|
||||
a { color: #2563eb; text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
h1, h2, h3 { color: #111; margin-top: 1.5em; margin-bottom: 0.5em; }
|
||||
h1 { font-size: 1.8em; }
|
||||
h2 { font-size: 1.4em; }
|
||||
time { color: #888; font-size: 0.9rem; }
|
||||
ul { padding-left: 1.5rem; }
|
||||
p { margin: 0.8em 0; }
|
||||
header { border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 2rem; }
|
||||
header h1 { margin: 0; }
|
||||
header a { color: #111; }
|
||||
@@ -0,0 +1 @@
|
||||
name = "minimal"
|
||||
Reference in New Issue
Block a user