mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-05 00:15:59 -06:00
36 lines
884 B
HTML
36 lines
884 B
HTML
<div class="post">
|
|
<h2 class="post-title">
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
</h2>
|
|
|
|
{{ partial "post-metadata.html" . }}
|
|
|
|
{{ with .Resources.GetMatch "feature" }}
|
|
{{ if eq .MediaType.MainType "image" }}
|
|
<div class="post-media">
|
|
<img src="{{ .Permalink }}" alt="{{ .Title }}" />
|
|
</div>
|
|
{{ else if eq .MediaType.MainType "video" }}
|
|
<div class="post-media">
|
|
<video controls>
|
|
<source src="{{ .Permalink }}" alt="{{ .Title }}">
|
|
</video>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<div class="post-description">
|
|
{{ if .Description }}
|
|
<p>
|
|
{{ .Description | markdownify }}
|
|
</p>
|
|
{{ else }}
|
|
{{ .Summary }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
<div class="readmore">
|
|
<a href="{{ .Permalink }}">Read more →</a>
|
|
</div>
|
|
</div>
|