add article header to single.html and add some demo articles

This commit is contained in:
geekifan
2025-04-21 15:51:31 +08:00
parent 8faf99334b
commit 99f5cf6774
9 changed files with 379 additions and 11 deletions

View File

@ -50,6 +50,9 @@
{{ if not (findRE "//" $src) }}
{{ $media_subpath := .Params.media_subpath | default "" }}
{{ $src = path.Join $media_subpath $src }}
{{ $page_path := path.Dir .RelPermalink }}
{{ $src = path.Join $page_path $src }}
{{ end }}
{{ $alt := .Params.image.alt | default "Preview Image" | htmlEscape }}