Files
bobatheme/layouts/summary.html
BBaoVanC 8e22007bfd Rename feature-figure.html to featured-media and combine CSS with figures
- Rename feature-figure.html and its class from post-media to
  featured-media
- Move all <figure> formatting to a separate section
- Put the .featured-media CSS next to the rest of the figure formatting
  as it's sorta a special case of regular figure
2025-09-01 02:45:12 -05:00

22 lines
633 B
HTML

<article class="summary-card">
<h2 class="summary-card-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>
{{ partial "page-metadata/post-short.html" . }}
{{ partial "featured-media.html" . }}
{{ with .Summary }}
<div class="summary-card-description">
{{ . }}
</div>
{{ end }}
<div class="summary-card-readmore">
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
</div>
</article>