Add post data to the cards
This commit is contained in:
parent
89ee900947
commit
8979ac8810
1 changed files with 20 additions and 0 deletions
20
index.html
20
index.html
|
|
@ -20,6 +20,16 @@ layout: default
|
|||
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
|
||||
{{ post.date | date: "%b %-d, %Y" }}
|
||||
</a>
|
||||
|
||||
{% if post.author %}
|
||||
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
|
||||
{{ post.author }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
|
||||
{% for cat in post.categories %}{{ cat }}, {% endfor %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="mdl-card__menu">
|
||||
<button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect" id="post-{{ post.id }}">
|
||||
|
|
@ -53,6 +63,16 @@ layout: default
|
|||
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
|
||||
{{ post.date | date: "%b %-d, %Y" }}
|
||||
</a>
|
||||
|
||||
{% if post.author %}
|
||||
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
|
||||
{{ post.author }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
|
||||
{% for cat in post.categories %}{{ cat }}, {% endfor %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="mdl-card__menu">
|
||||
<button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect" id="post-{{ post.id }}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue