From a1200bbd1d67a4d79d2282f3442ac0ecae097f01 Mon Sep 17 00:00:00 2001 From: Ravi Date: Wed, 24 Jul 2019 07:06:29 -0700 Subject: [PATCH] Allow Markdown in author bio (#2215) * 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

to

--- _config.yml | 2 +- _includes/author-profile.html | 6 +++--- test/_config.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index cf830b7b..48bcf2da 100644 --- a/_config.yml +++ b/_config.yml @@ -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: diff --git a/_includes/author-profile.html b/_includes/author-profile.html index 4f0c02cd..b7d62149 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -33,9 +33,9 @@

{{ author.name }}

{% endif %} {% if author.bio %} -

- {{ author.bio }} -

+
+ {{ author.bio | markdownify }} +
{% endif %}
diff --git a/test/_config.yml b/test/_config.yml index 2ec5de3e..e0ef5473 100644 --- a/test/_config.yml +++ b/test/_config.yml @@ -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"