Replacing hall of fame with showcase. (new type, content driven, thumbnails, etc)

This commit is contained in:
spf13
2014-01-22 17:16:09 -05:00
parent 9564e6e9d8
commit 4f1807c7a7
15 changed files with 81 additions and 20 deletions

View File

@@ -56,6 +56,7 @@
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
<ul class="dropdown-menu">
<li hugo-nav="showcase"><a href="/showcase"> Showcase </a> </li>
{{ range $key, $value := .Site.Indexes.groups.community.Pages }}
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
{{ end }}

View File

@@ -0,0 +1,14 @@
{{ template "chrome/header.html" . }}
<section id="main">
<div>
<h1 id="title">Showcase</h1>
<div class="row">
{{ range .Data.Pages.ByDate }}
{{ .Render "thumbnail"}}
{{ end }}
</div>
</div>
<br><br>
If you want to be added to this page please send a <a href="https://github.com/spf13/hugo/pulls">pull request</a>.
</section>
{{ template "chrome/footer.html" . }}

View File

@@ -0,0 +1,10 @@
<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>
<a href="{{ .Params.sitelink }}"><h4>{{ .Title }}<a href="{{ .Params.sourcelink }}" class="small pull-right">source</a></h4></a>
{{ range .Params.tags }}
<span class="label label-default" style="font-size:60%;">{{ . }}</span>
{{ end }}
</div>
</div>