diff options
| author | yingyu5658 <i@yingyu5658.me> | 2026-01-13 22:33:08 +0800 |
|---|---|---|
| committer | yingyu5658 <i@yingyu5658.me> | 2026-01-13 22:33:08 +0800 |
| commit | 4c40685be4a919f4483febc6fc9249fa59651fae (patch) | |
| tree | 29f0c9b66f5d90a5d808b84355148f6577c6d54e /layouts/_default/single.html | |
| parent | 16e2a3fd905c5ffb5e0a90c1a4805559d372b389 (diff) | |
| download | blog-4c40685be4a919f4483febc6fc9249fa59651fae.tar.gz blog-4c40685be4a919f4483febc6fc9249fa59651fae.zip | |
style: show the summary of every post on recent-posts
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 38c4c28..b16d254 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,5 @@ -{{ define "main" }} {{ if eq .Type "blog" }} {{ if not .Params.menu }} -<h1>{{ .Title }}</h1> -{{ end }} {{ end }} +{{ define "main" }} +<header>{{- partial "header.html" . -}}</header> <article class="h-entry"> <h1 class="post-title p-name"><a href="{{ .RelPermalink }}" style="color:#222222;">{{ .Title }}</a></h1> |
