list view will display pictures if given
This commit is contained in:
parent
83f14e0e60
commit
4fa8a63925
@ -2,36 +2,37 @@
|
|||||||
{{ partial "hero.html" . }}
|
{{ partial "hero.html" . }}
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
{{ range .RegularPages }}
|
{{ 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 }}
|
<div class="card">
|
||||||
<ul id="tags">
|
<div class="card-content">
|
||||||
{{ range . }}
|
<div class="media">
|
||||||
<span class="tag">
|
<div class="media-left">
|
||||||
<a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a>
|
<figure class="image is-128x128">
|
||||||
</span>
|
{{ 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 }}
|
{{ end }}
|
||||||
</ul>
|
</div>
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user