mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Replacing hall of fame with showcase. (new type, content driven, thumbnails, etc)
This commit is contained in:
@@ -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 }}
|
||||
|
14
docs/layouts/indexes/showcase.html
Normal file
14
docs/layouts/indexes/showcase.html
Normal 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" . }}
|
10
docs/layouts/showcase/thumbnail.html
Normal file
10
docs/layouts/showcase/thumbnail.html
Normal 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>
|
||||
|
Reference in New Issue
Block a user