Simpler postfeed

This commit is contained in:
John O'Nolan 2020-07-21 00:41:50 +07:00
parent 3355e09f11
commit 711be45882
4 changed files with 15 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -303,7 +303,15 @@ ul.nav a:hover {
/* Index /* Index
/* ---------------------------------------------------------- */ /* ---------------------------------------------------------- */
.gh-postfeed .post {
display: block;
padding: 1vmin 0;
}
.gh-postfeed .post span {
color: var(--color-primary);
text-decoration: underline;
}
/* Page /* Page

View file

@ -1,9 +1,11 @@
{{!< default}} {{!< default}}
<div class="gh-container"> <div class="gh-container">
<ul> <div class="gh-postfeed">
{{#foreach posts visibility="all"}} {{#foreach posts visibility="all"}}
<li><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM, YYYY"}} -</time> <a href="{{url}}">{{title}}</a></li> <a class="{{post_class}}" href="{{url}}">
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM, YYYY"}}</time> - <span>{{title}}</span>
</a>
{{/foreach}} {{/foreach}}
</ul> </div>
</div> </div>