Skip to content

Commit

Permalink
Allow Markdown in author bio (mmistakes#2215)
Browse files Browse the repository at this point in the history
* enable markdown in author bio

added the markdownify liquid filter

* Add markdown to bio in _config.yml

* add markdown to bio in /test/ _config.yml

* Change <p> to <div>
  • Loading branch information
raviriley authored and mmistakes committed Jul 24, 2019
1 parent 6311da0 commit a1200bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ analytics:
author:
name : "Your Name"
avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg"
bio : "I am an amazing person."
bio : "I am an **amazing** person."
location : "Somewhere"
email :
links:
Expand Down
6 changes: 3 additions & 3 deletions _includes/author-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
{% endif %}
{% if author.bio %}
<p class="author__bio" itemprop="description">
{{ author.bio }}
</p>
<div class="author__bio" itemprop="description">
{{ author.bio | markdownify }}
</div>
{% endif %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion test/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ analytics:
author:
name : "Your Name"
avatar : "/assets/images/bio-photo.jpg"
bio : "I am an amazing person."
bio : "I am an **amazing** person."
location : "Somewhere"
links:
- label: "Your Website"
Expand Down

0 comments on commit a1200bb

Please sign in to comment.