Start implementing post info at bottom

Now, all posts show info about: author, updated date, tags.
However, styling is needed and also the tags part has to be fixed (we need to add a comma after every tag's name, excluding the last one)
This commit is contained in:
Bea 2021-01-03 15:56:27 +01:00
parent 208ea6aa52
commit 2858f82b3a
3 changed files with 17 additions and 4 deletions

View File

@ -10,7 +10,7 @@
<header class="mind-post-card-big_header"> <header class="mind-post-card-big_header">
<p class="mind-post-card-big_meta"><span class="mind-post-card-big_tag">{{primary_tag.name}}</span> <p class="mind-post-card-big_meta"><span class="mind-post-card-big_tag">{{primary_tag.name}}</span>
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time> <time class="post-date" datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="DD MMMM YYYY"}}</time>
</p> </p>
<h3>{{title}}</h3> <h3>{{title}}</h3>
</header> </header>

View File

@ -12,8 +12,8 @@
<header class="mind-post-card-sidebar_header"> <header class="mind-post-card-sidebar_header">
<p class="mind-post-card-sidebar_meta"><span <p class="mind-post-card-sidebar_meta"><span
class="mind-post-card-sidebar_tag">{{primary_tag.name}}</span> • class="mind-post-card-sidebar_tag">{{primary_tag.name}}</span> •
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date <time class="post-date" datetime="{{date published_at format='YYYY-MM-DD'}}">{{date
format="DD MMMM YYYY"}}</time> published_at format="DD MMMM YYYY"}}</time>
</p> </p>
<h5>{{title}}</h5> <h5>{{title}}</h5>
</header> </header>

View File

@ -5,7 +5,7 @@
<div> <div>
<h1>{{title}}</h1> <h1>{{title}}</h1>
<p><a class="mind-post-header_tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a> • <p><a class="mind-post-header_tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a> •
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time> <time class="post-date" datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="DD MMMM YYYY"}}</time>
</p> </p>
</div> </div>
{{/post}} {{/post}}
@ -40,6 +40,19 @@
</div> </div>
{{content}} {{content}}
<hr> <hr>
<i>Last update: <time class="post-date" datetime="{{date updated_at format='YYYY-MM-DD'}}">{{date updated_at format="DD MMMM YYYY"}}</time></i>
<br />
<i>Author: {{primary_author.name}}</i>
{{#if tags}}
<br />
<i>Tags:
{{#foreach tags}} {{!-- TODO: NOT WORKING --}}
<a href="{{url}}" title="{{name}}" class="tag tag-{{id}} {{slug}}">{{name}}</a>
{{/foreach}}
{{/if}}
</i>
<hr>
</div> </div>
<h3>Comments</h3> <h3>Comments</h3>
<div id="remark42"></div> <div id="remark42"></div>