Skip to content

Commit 7302072

Browse files
authored
Differentiate colors for date and description on blog page (#593)
* Differentiate colors for date and description on blog page * Run pre-commit hooks and fix code style issues * Run pre-commit hooks and fix code style issues * add new line * add new line
1 parent e4ebca4 commit 7302072

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

_includes/posts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ <h3>
4747
</div>
4848
{%- endif %}
4949

50-
{%- endif -%}
50+
{%- endif -%}

_layouts/post.html

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,29 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
2020
{{ page.date | date: date_format }}
2121
</time>
2222
{%- if page.modified_date -%}
23-
~
24-
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
25-
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
26-
{{ mdate | date: date_format }}
27-
</time>
23+
~
24+
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
25+
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
26+
{{ mdate | date: date_format }}
27+
</time>
2828
{%- endif -%}
2929
{%- if page.author -%}
30-
• {% for author in page.author %}
31-
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
32-
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
33-
{%- if forloop.last == false %}, {% endif -%}
34-
{% endfor %}
35-
{%- endif -%}</p>
30+
• {% for author in page.author %}
31+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
32+
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
33+
{%- if forloop.last == false %}, {% endif -%}
34+
{% endfor %}
35+
{%- endif -%}
36+
</p>
3637
</header>
3738

3839
<div class="post-content e-content" itemprop="articleBody">
3940
{{ content }}
4041
</div>
4142

4243
{%- if site.disqus.shortname -%}
43-
{%- include disqus_comments.html -%}
44+
{%- include disqus_comments.html -%}
4445
{%- endif -%}
4546

4647
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
47-
</article>
48+
</article>

0 commit comments

Comments
 (0)