Skip to content

Commit 2fb9439

Browse files
author
Derek Greer
committed
fix: corrected markdown processing for author posts
1 parent c917479 commit 2fb9439

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

_includes/author_posts.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
{% endif %}
77
{% endfor %}
88

9+
{% assign col = site.collections | where: 'label', page.collection | first %}
910
{% assign posts = author_posts | sort: 'date' | reverse %}
1011
{% for post in posts limit: 10 %}
1112
<div class="box">
1213
<h1 class="post-title">
1314
<a style="color:#4a4a4a;" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
1415
</h1>
15-
<span class="post-meta">{{ post.date | date: "%-d %B, %Y. It was a %A." }} <a style="color:grey" href="{{ site.baseurl }}{{ post.url }}"></a></span><hr/>
16+
<span class="post-meta">{{col.author}} - {{ post.date | date: "%-d %B, %Y. It was a %A." }} <a style="color:grey" href="{{ site.baseurl }}{{ post.url }}"></a></span><hr/>
1617

17-
<span class="post-text">{{ post.content }}</span>
18+
<span class="post-text">{{ post.content | markdownify }}</span>
1819
</div>
1920

2021
{% endfor %}

_layouts/aggregate_default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<section>
99
<div>
1010
<div class="container" style="margin-top:31px;">
11-
<a href="{{ site.baseurl }}"><img src="{{ site.baseurl }}/assets/images/lostechies_logo.png"/></a>
11+
<a href="{{ site.url }}"><img src="{{ site.baseurl }}/assets/images/lostechies_logo.png"/></a>
1212
</div>
1313
</div>
1414
</section>

_layouts/author_default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<section>
99
<div>
1010
<div class="container" style="margin-top:31px;">
11-
<a href="{{ site.baseurl }}"><img src="{{ site.baseurl }}/assets/images/lostechies_logo.png"/></a>
11+
<a href="{{ site.url }}"><img src="{{ site.baseurl }}/assets/images/lostechies_logo.png"/></a>
1212
</div>
1313
</div>
1414
</section>

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<section>
99
<div>
1010
<div class="container" style="margin-top:31px;">
11-
<a href="{{ site.baseurl }}"><img src="{{ site.baseurl }}/assets/images/lostechies_logo.png"/></a>
11+
<a href="{{ site.url }}"><img src="{{ site.baseurl }}/assets/images/lostechies_logo.png"/></a>
1212
</div>
1313
</div>
1414
</section>

0 commit comments

Comments
 (0)