mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
showcase layout improved when thumbnails are different proportions
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
<div class="col-sm-6 col-md-4" style="padding-bottom:1em;">
|
||||
<div class="thumbnail">
|
||||
<a href="{{ .Params.sitelink }}"><img class="img-responsive img-rounded" style="width:100%;" src="{{ .Params.thumbnail }}" alt="{{ .Description }}"></a>
|
||||
<h4>
|
||||
<a href="{{ .Params.sitelink }}">{{ .Title }}</a>
|
||||
{{ if (isset .Params "sourcelink") }}
|
||||
<a href="{{ .Params.sourcelink }}" class="small pull-right">source</a>
|
||||
{{ end }}
|
||||
</h4>
|
||||
{{ range .Params.tags }}
|
||||
<span class="label label-default" style="font-size:60%;">{{ . }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="showcase-container">
|
||||
<div class="dummy"></div>
|
||||
<div class="thumbnail">
|
||||
<a href="{{ .Params.sitelink }}"><img class="img-responsive img-rounded" style="width:100%;" src="{{ .Params.thumbnail }}" alt="{{ .Description }}"></a>
|
||||
<h4>
|
||||
<a href="{{ .Params.sitelink }}">{{ .Title }}</a>
|
||||
{{ if (isset .Params "sourcelink") }}
|
||||
<a href="{{ .Params.sourcelink }}" class="small pull-right">source</a>
|
||||
{{ end }}
|
||||
</h4>
|
||||
{{ range .Params.tags }}
|
||||
<span class="label label-default" style="font-size:60%;">{{ . }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user