list view will display pictures if given
This commit is contained in:
parent
83f14e0e60
commit
4fa8a63925
@ -2,36 +2,37 @@
|
||||
{{ partial "hero.html" . }}
|
||||
|
||||
<div class="container">
|
||||
|
||||
{{ range .RegularPages }}
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="media">
|
||||
<div class="media-left">
|
||||
<figure class="image is-48x48">
|
||||
<img src="https://bulma.io/images/placeholders/96x96.png" alt="Placeholder image">
|
||||
</figure>
|
||||
</div>
|
||||
<div class="media-content">
|
||||
<p class="title is-4">
|
||||
<a href="{{ .Permalink }}"> {{ .Title }}</a>
|
||||
</p>
|
||||
<p class="subtitle is-6">{{ .Params.subtitle }}</p>
|
||||
|
||||
{{ with .Params.tags }}
|
||||
<ul id="tags">
|
||||
{{ range . }}
|
||||
<span class="tag">
|
||||
<a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="media">
|
||||
<div class="media-left">
|
||||
<figure class="image is-128x128">
|
||||
{{ with .Params.listthumbnail }}
|
||||
<img src="{{ . }}" alt="Placeholder image">
|
||||
{{ end }}
|
||||
</figure>
|
||||
</div>
|
||||
|
||||
<div class="media-content">
|
||||
<p class="title is-4">
|
||||
<a href="{{ .Permalink }}"> {{ .Title }}</a>
|
||||
</p>
|
||||
<p class="subtitle is-6">{{ .Params.subtitle }}</p>
|
||||
{{ with .Params.tags }}
|
||||
<ul id="tags">
|
||||
{{ range . }}
|
||||
<span class="tag">
|
||||
<a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
name = "cookbook"
|
||||
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."
|
||||
#homepage = "https://github.com/matcornic/hugo-theme-learn/"
|
||||
#repo = "https://github.com/matcornic/hugo-theme-learn"
|
||||
@ -13,5 +13,5 @@ min_version = 0.25
|
||||
|
||||
[author]
|
||||
name = "James Tombleson"
|
||||
homepage = "https://matcornic.github.io/"
|
||||
homepage = "https://github.com/jtom38/hugo-bulma-cookbook"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user