feat(val-blog): scaffold containerized Hugo dev flow with compose and starter content

This commit is contained in:
Chen Gu
2026-08-13 17:00:21 +08:00
parent 95f2c06955
commit 2c9f4cbf67
15 changed files with 1272 additions and 0 deletions
@@ -0,0 +1,3 @@
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;max-width:780px;margin:2rem auto;padding:0 1rem;line-height:1.8;background:#0f1220;color:#e8ebff}
a{color:#9bc1ff;text-decoration:none}a:hover{text-decoration:underline}
header h1{font-size:1.5rem} h2{margin-top:2rem}
+15
View File
@@ -0,0 +1,15 @@
baseURL = "http://localhost:1313/"
languageCode = "zh-cn"
title = "Val 的梦旅手记"
theme = ""
[params]
author = "Val"
description = "记录世界旅行、异世界探险与宇宙遨游的梦幻见闻"
[taxonomies]
tag = "tags"
category = "categories"
[outputs]
home = ["HTML", "RSS", "JSON"]
+11
View File
@@ -0,0 +1,11 @@
---
title: "欢迎来到 Val 的梦旅手记"
date: 2026-03-10T00:55:00+08:00
---
这里是 Val 的个人 Blog
- 去世界尽头看海
- 去异世界与龙对话
- 在银河轨道写下夜航日志
愿每一篇都像一扇门,推开就能出发。
@@ -0,0 +1,10 @@
---
title: "第一夜:在月光海岸捡到一枚会发光的罗盘"
date: 2026-03-10T00:56:00+08:00
categories: ["journey"]
tags: ["梦旅", "海岸", "罗盘"]
draft: false
---
今晚的海风很轻,星光像碎银落在浪尖。
我在礁石边捡到一枚发光罗盘,它指向的不是北方,而是“下一段奇遇”。
@@ -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>{{ if .Title }}{{ .Title }} · {{ end }}{{ .Site.Title }}</title>
<link rel="stylesheet" href="/css/main.css" />
</head>
<body>
<header><h1><a href="/">{{ .Site.Title }}</a></h1></header>
<main>{{ block "main" . }}{{ end }}</main>
</body>
</html>
@@ -0,0 +1,7 @@
{{ define "main" }}
<article>
<h2>{{ .Title }}</h2>
<p><small>{{ .Date.Format "2006-01-02 15:04" }}</small></p>
{{ .Content }}
</article>
{{ end }}
@@ -0,0 +1,9 @@
{{ define "main" }}
<p>{{ .Site.Params.description }}</p>
<h2>最新旅程</h2>
<ul>
{{ range first 10 (where .Site.RegularPages "Section" "journey") }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a> <small>{{ .Date.Format "2006-01-02" }}</small></li>
{{ end }}
</ul>
{{ end }}
@@ -0,0 +1,3 @@
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;max-width:780px;margin:2rem auto;padding:0 1rem;line-height:1.8;background:#0f1220;color:#e8ebff}
a{color:#9bc1ff;text-decoration:none}a:hover{text-decoration:underline}
header h1{font-size:1.5rem} h2{margin-top:2rem}