Add a "See more ..." on the homepage to see more blog posts

This commit is contained in:
Alexis Tacnet
2017-01-04 14:53:49 +01:00
parent f3b2b053ca
commit 255816bddb
2 changed files with 15 additions and 0 deletions

View File

@@ -19,6 +19,11 @@
{{ end }}
{{ end }}
</ul>
{{ $nbTotalGroup := len (.Data.Pages.GroupByDate "Jan, 2006" "desc")}}
{{ if gt $nbTotalGroup 5}}
<a href="./blog/" class="see-more">See more ...</a>
{{ end }}
</div>
</div>
</section>

View File

@@ -513,6 +513,16 @@ section.main .container .content .post-item .meta {
display: none;
min-width: 100px;
}
section.main .container .content .see-more {
font-style: italic;
float: right;
font-size: 0.9em;
margin-top: 2em;
color: #313537;
}
section.main .container .content .see-more:hover {
color: #666;
}
section {
padding: 0 16px;
}