mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-10 09:21:36 -05:00
I think this may have changed in Hugo's history, but now description and summary are considered different things. The description is what goes in metadata (and what search engines see), while the summary is the blurb about the article that should be displayed when rendering a summary (what I should've been using always here).
17 lines
409 B
HTML
17 lines
409 B
HTML
<h2 class="page-title">
|
|
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
|
</h2>
|
|
|
|
{{ partial "page-metadata/author.html" . }}
|
|
|
|
{{ with .Summary }}
|
|
<div class="page-description">
|
|
{{ . }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="readmore">
|
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
|
</div>
|