diff options
| author | yingyu5658 <yingyu5658@outlook.com> | 2025-08-02 18:00:40 +0800 |
|---|---|---|
| committer | yingyu5658 <yingyu5658@outlook.com> | 2025-08-02 18:00:40 +0800 |
| commit | 0e061e76a956f7ac879544937b5b95c04815ad24 (patch) | |
| tree | 31c90aaa93cff94282bce7790054bfda83723b6d /layouts/_default/single.html | |
| parent | 2e3ab877911e60d5fa3b780d4ebe541400b4772a (diff) | |
| download | hugo-theme-concise-0e061e76a956f7ac879544937b5b95c04815ad24.tar.gz hugo-theme-concise-0e061e76a956f7ac879544937b5b95c04815ad24.zip | |
移除single.html中的header引用
优化日期格式
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b9dba40..90bfe38 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,10 +1,13 @@ {{ define "main" }} - <header>{{ partial "header.html" . }}</header> - <h1>{{ .Title }}</h1> -<time datetime="{{ .Date | time.Format "2006-01-02" }}"> - {{ .Date | time.Format "2006-01-02" }} - </time> + <header> + <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} + </header> + <h1 class="inner-post-title">{{ .Title }}</h1> +<time datetime="{{ .Date | time.Format "2006-01-02" }}"> + {{ .Date | time.Format "Jan. 2, 2006" }} +</time> + <hr> <div class="post-content"> {{ .Content | safeHTML}} </div> |
