init: hugo site with mytheme

This commit is contained in:
Ubuntu
2026-04-13 13:51:02 +08:00
commit e9b2dca47b
30 changed files with 287 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
{{ define "main" }}
<article class="post-single">
<h1 class="post-title">{{ .Title }}</h1>
<div class="post-meta">{{ .Date.Format "2006-01-02" }}{{ with .Params.categories }} · {{ . }}{{ end }}</div>
<div class="post-content">{{ .Content }}</div>
</article>
{{ end }}