12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <article class="post-preview">
- <a href="{{ .Permalink }}">
- <h2 class="post-title">{{ .Title }}</h2>
- {{ if .Params.subtitle }}
- <h3 class="post-subtitle">
- {{ .Params.subtitle }}
- </h3>
- {{ end }}
- {{ if .Params.image }}
- <img src="{{ .Params.image }}" alt="{{ .Title }}" class="img-title" />
- {{ end }}
- {{ if .Params.video }}
- <video loop autoplay muted playsinline class="img-title">
- <source src="{{ .Params.video }}">
- </video>
- {{ end }}
- </a>
- <p class="post-meta">
- {{ partial "post_meta.html" . }}
- </p>
- <div class="post-entry">
- {{ if or (.Truncated) (.Params.summary) }}
- {{ .Summary }}
- <a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
- {{ else }}
- {{ .Content }}
- {{ end }}
- </div>
- {{ if .Params.tags }}
- <div class="blog-tags">
- {{ range .Params.tags }}
- <!-- Fix for "https://github.com/halogenica/beautifulhugo/issues/349".
- From "https://github.com/dovidio/personalwebsite/commit/34762e94c29fd2c26c16c45f8ae2de21bdf9b46d".
- <a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>
- -->
- <a href="{{"tags" | absLangURL}}/{{ . | urlize }}/">{{ . }}</a>
- {{ end }}
- </div>
- {{ end }}
- </article>
|