improve date formatting
- reuse date format across the all pages. - fix emoji to not be underlined in case of links
This commit is contained in:
parent
314862e712
commit
0bb026114b
|
@ -4,7 +4,7 @@
|
|||
<div class="emoji-representation">
|
||||
{% for E in S[current_date] %}
|
||||
{% if E.link %}
|
||||
<a href="{{E.link}}" title="{{E.day_name}}">{{E.emoji}}</a>
|
||||
<a target=_blank href="{{E.link}}" title="{{E.day_name}}">{{E.emoji}}</a>
|
||||
{% else %}
|
||||
<span title="{{E.day_name}}">{{E.emoji}}</span>
|
||||
{% endif %}
|
||||
|
@ -12,7 +12,7 @@
|
|||
|
||||
{% for E in S[current_date_with_year] %}
|
||||
{% if E.link %}
|
||||
<a href="{{E.link}}" title="{{E.day_name}}">{{E.emoji}}</a>
|
||||
<a target=_blank href="{{E.link}}" title="{{E.day_name}}">{{E.emoji}}</a>
|
||||
{% else %}
|
||||
<span title="{{E.day_name}}">{{E.emoji}}</span>
|
||||
{% endif %}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<div class="topic-date"><time datetime="{{site.time | date: '%Y-%m-%d'}}">{{site.time | date: "%A, %b %e %Y"}}</time>
|
||||
{% include date-easter.html %}
|
||||
</div>
|
|
@ -192,7 +192,7 @@ mark {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.emoji-representation {
|
||||
.emoji-representation, .emoji-representation>a{
|
||||
display: inline;
|
||||
text-decoration: none;
|
||||
font-style: normal;
|
||||
|
|
|
@ -10,8 +10,7 @@ layout: default
|
|||
<div class="story-head">
|
||||
<h1 class="story-title">{{page.title | strip}}</h1>
|
||||
{% if page.sources%}<p>{{page.sources | join: " "}}</p>{%endif%}
|
||||
<time datetime="{{page.date | date:'%FT%T%:z'}}">{{page.date | date: "%A, %b %e %Y"}}</time>
|
||||
{% include date-easter.html %}
|
||||
{% include date.html %}
|
||||
</div>
|
||||
<div class="hr-line"></div>
|
||||
|
||||
|
|
|
@ -7,10 +7,7 @@ layout: default
|
|||
<div class="topic-container">
|
||||
<h1 class="topic-heading">{{page.title | capitalize | strip}}</h1>
|
||||
<div class="hr-line"></div>
|
||||
<div class="topic-date">
|
||||
<time datetime="{{site.time | date: '%Y-%m-%d'}}">{{site.time | date: "%A, %b, %e, %Y"}}</time>
|
||||
{% include date-easter.html %}
|
||||
</div>
|
||||
{% include date.html %}
|
||||
|
||||
{% if page.article_count == 0 %}
|
||||
<p class="topic-empty">No articles today under {{page.title}}</p>
|
||||
|
|
|
@ -5,13 +5,11 @@ layout: default
|
|||
<div class="topic-container">
|
||||
<h1 class="topic-heading">{{page.title}}</h1>
|
||||
<div class="hr-line"></div>
|
||||
<div class="topic-date"><time datetime="{{site.time | date: '%Y-%m-%d'}}">{{site.time | date: "%A, %b, %e, %Y"}}</time>
|
||||
{% include date-easter.html %}
|
||||
</div>
|
||||
{% include date.html %}
|
||||
{% for T in site.data.topics %}
|
||||
{% assign post_count = T[1] %}
|
||||
{% if post_count > 0 %}
|
||||
<div class="topic-{{T[0]|downcase}}">
|
||||
<div class="topic-{{T[0]|downcase}} news-topic">
|
||||
<h2><a href="/{{T[0]}}/">{{T[0] | capitalize}}</a></h2>
|
||||
{% for post in site.pages %}
|
||||
{% if post.topics and post.topics.first == T[0] %}
|
||||
|
|
Loading…
Reference in New Issue