From ab4cf38a773a1e24e48cb0d92cbfe44218f774c6 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 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index cf830b7..48bcf2d 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 4f0c02c..b7d6214 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 %}
-- 2.43.0