Skip to content

Commit

Permalink
edit : added date
Browse files Browse the repository at this point in the history
  • Loading branch information
AshHyun committed Aug 24, 2020
1 parent 21e0923 commit 7d37654
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions _includes/archive-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ <h2 class="archive__item-title no_toc" itemprop="headline">
{% endif %}
</h2>
{% include post__meta.html type=include.type %}

<!--added here-->
{% if post.date %}
<p class="page__meta"><i class="far fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ post.date | date: "%B %d %Y" }}</p>
{% endif %}

{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
</article>
</div>
6 changes: 4 additions & 2 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
{% unless page.header.overlay_color or page.header.overlay_image %}
<header>
{% if page.title %}<h1 id="page-title" class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
{% if page.read_time %}
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
{% if page.date %}
<p class="page__date"><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }} <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p>
<!--{% if page.read_time %}
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p> -->
{% endif %}
</header>
{% endunless %}
Expand Down

0 comments on commit 7d37654

Please sign in to comment.