mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Add a "See more ..." on the homepage to see more blog posts
This commit is contained in:
@@ -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>
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user