forked from eduardoboucas/staticman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eduardoboucas#305 from mckmonster/add_image_onlist…
…page To have the same display on each pages
- Loading branch information
Showing
3 changed files
with
39 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<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 src="{{ .Params.video }}" loop autoplay muted playsinline class="img-title" /> | ||
{{ end }} | ||
</a> | ||
|
||
<p class="post-meta"> | ||
{{ partial "post_meta.html" . }} | ||
</p> | ||
<div class="post-entry"> | ||
{{ if .Truncated }} | ||
{{ .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 }} | ||
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a> | ||
{{ end }} | ||
</div> | ||
{{ end }} | ||
|
||
</article> |