2022-06-03 22:37:33 +08:00
|
|
|
{{ with .ctx }}
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ if $.IsHome }}
|
|
|
|
{{ if .Params.Expand }}
|
2022-06-09 09:12:22 +08:00
|
|
|
{{ .Content }}
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ else }}
|
2022-06-09 09:12:22 +08:00
|
|
|
{{ .Summary }}
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
2025-01-03 20:48:41 +08:00
|
|
|
{{ $expired := default .Site.Params.PostMeta.expired .Params.Expired }}
|
|
|
|
{{ if $expired }}
|
|
|
|
<div class="post-expired-tip" id="post-expired-tip">
|
|
|
|
<div class="post-expired-title">
|
|
|
|
<i class="fa-solid fa-hourglass-half"></i>
|
|
|
|
<span>{{ T "PostMeta.expired.title" }}</span>
|
|
|
|
</div>
|
|
|
|
<div id="post-expired-content" class="post-expired-content"></div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{/** Started use the read more content anchor the need
|
|
|
|
Hugo framework min marjo version greater than 0.134.0 **/}}
|
2024-12-08 17:01:27 +08:00
|
|
|
{{ .Summary }}
|
2025-01-03 20:48:41 +08:00
|
|
|
<!-- It's an anchor point to locate read more content start. -->
|
|
|
|
<a id="more"></a>
|
2024-12-08 17:01:27 +08:00
|
|
|
{{ .ContentWithoutSummary }}
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ end }}
|
2022-06-03 22:37:33 +08:00
|
|
|
{{ end }}
|