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,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 }}