list view will display pictures if given

This commit is contained in:
James Tombleson 2022-09-28 23:03:47 -07:00
parent 83f14e0e60
commit 4fa8a63925
2 changed files with 28 additions and 27 deletions

View File

@ -2,22 +2,24 @@
{{ partial "hero.html" . }} {{ partial "hero.html" . }}
<div class="container"> <div class="container">
{{ range .RegularPages }} {{ range .RegularPages }}
<div class="card"> <div class="card">
<div class="card-content"> <div class="card-content">
<div class="media"> <div class="media">
<div class="media-left"> <div class="media-left">
<figure class="image is-48x48"> <figure class="image is-128x128">
<img src="https://bulma.io/images/placeholders/96x96.png" alt="Placeholder image"> {{ with .Params.listthumbnail }}
<img src="{{ . }}" alt="Placeholder image">
{{ end }}
</figure> </figure>
</div> </div>
<div class="media-content"> <div class="media-content">
<p class="title is-4"> <p class="title is-4">
<a href="{{ .Permalink }}"> {{ .Title }}</a> <a href="{{ .Permalink }}"> {{ .Title }}</a>
</p> </p>
<p class="subtitle is-6">{{ .Params.subtitle }}</p> <p class="subtitle is-6">{{ .Params.subtitle }}</p>
{{ with .Params.tags }} {{ with .Params.tags }}
<ul id="tags"> <ul id="tags">
{{ range . }} {{ range . }}
@ -27,7 +29,6 @@
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}
</div> </div>
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
name = "cookbook" name = "cookbook"
license = "MIT" license = "MIT"
licenselink = "https://github.com/matcornic/hugo-theme-learn/blob/master/LICENSE.md" licenselink = "https://github.com/jtom38/hugo-bulma-cookbook/blob/master/LICENSE.md"
description = "Minimal cookbook template for Hugo based on Bulma CSS." description = "Minimal cookbook template for Hugo based on Bulma CSS."
#homepage = "https://github.com/matcornic/hugo-theme-learn/" #homepage = "https://github.com/matcornic/hugo-theme-learn/"
#repo = "https://github.com/matcornic/hugo-theme-learn" #repo = "https://github.com/matcornic/hugo-theme-learn"
@ -13,5 +13,5 @@ min_version = 0.25
[author] [author]
name = "James Tombleson" name = "James Tombleson"
homepage = "https://matcornic.github.io/" homepage = "https://github.com/jtom38/hugo-bulma-cookbook"