feat(val-blog): scaffold containerized Hugo dev flow with compose and starter content
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>{{ 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 }}
|
||||
Reference in New Issue
Block a user