mirror of https://gitlab.com/curben/blog
feat: add post and tag lists to homepage
This commit is contained in:
parent
e0cb55030c
commit
f92b7e0b53
|
@ -1 +0,0 @@
|
|||
archive.ejs
|
|
@ -0,0 +1,16 @@
|
|||
<div class="archive-container">
|
||||
<%- partial('_partial/header', {}, { cache: true }) %>
|
||||
<hr class="header-hr"/>
|
||||
<h2>Recent posts:</h2>
|
||||
<%- list_posts({
|
||||
amount: 10,
|
||||
class: 'index'
|
||||
}) %>
|
||||
<br/>
|
||||
<h2>Tags:</h2>
|
||||
<%- list_tags({
|
||||
amount: 0,
|
||||
class: 'index',
|
||||
transform: titlecase
|
||||
}) %>
|
||||
</div>
|
|
@ -138,6 +138,10 @@ ul {
|
|||
list-style: disc;
|
||||
}
|
||||
|
||||
ul.index-list {
|
||||
margin-left: unset;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
margin-left: 1.9em;
|
||||
|
@ -286,6 +290,15 @@ blockquote {
|
|||
margin-right: 1em;
|
||||
}
|
||||
|
||||
/* Wrap count in brackets */
|
||||
span.index-list-count:before {
|
||||
content: ' (';
|
||||
}
|
||||
|
||||
span.index-list-count:after {
|
||||
content: ')';
|
||||
}
|
||||
|
||||
.home-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
Loading…
Reference in New Issue