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 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@@ -513,6 +513,16 @@ section.main .container .content .post-item .meta {
|
|||||||
display: none;
|
display: none;
|
||||||
min-width: 100px;
|
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 {
|
section {
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user