Skip to content

Commit 9b8f2db

Browse files
committed
Fix italicized post headings
1 parent eb93fc0 commit 9b8f2db

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ minima:
3838
social_links:
3939
- { platform: linkedin, user_url: "https://www.linkedin.com/in/devinlogan/" }
4040

41+
# Markdown processing enabled
42+
markdown: kramdown
43+
kramdown:
44+
parse_block_html: true
45+
4146
# Exclude from processing.
4247
# The following items will not be processed, by default.
4348
# Any item listed under the `exclude:` key here will be automatically added to

_layouts/home.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,12 @@
55
<div class="home">
66
{{ content }}
77
{%- comment -%} This prevents any posts from being displayed on the home page {%- endcomment -%}
8-
</div>
8+
</div>
9+
10+
{% for post in site.posts %}
11+
<h2>
12+
<a href="{{ post.url | relative_url }}">
13+
{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}
14+
</a>
15+
</h2>
16+
{% endfor %}

_layouts/post.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<h1>
2+
{{ page.title | markdownify | remove: '<p>' | remove: '</p>' }}
3+
</h1>

0 commit comments

Comments
 (0)