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:
15
post.hbs
15
post.hbs
@@ -5,7 +5,7 @@
|
||||
<div>
|
||||
<h1>{{title}}</h1>
|
||||
<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>
|
||||
</div>
|
||||
{{/post}}
|
||||
@@ -40,6 +40,19 @@
|
||||
</div>
|
||||
{{content}}
|
||||
<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>
|
||||
<h3>Comments</h3>
|
||||
<div id="remark42"></div>
|
||||
|
||||
Reference in New Issue
Block a user