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 <p> to <div>
This commit is contained in:
parent
6311da0b16
commit
a1200bbd1d
3 changed files with 5 additions and 5 deletions
|
@ -109,7 +109,7 @@ analytics:
|
||||||
author:
|
author:
|
||||||
name : "Your Name"
|
name : "Your Name"
|
||||||
avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg"
|
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"
|
location : "Somewhere"
|
||||||
email :
|
email :
|
||||||
links:
|
links:
|
||||||
|
|
|
@ -33,9 +33,9 @@
|
||||||
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
|
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if author.bio %}
|
{% if author.bio %}
|
||||||
<p class="author__bio" itemprop="description">
|
<div class="author__bio" itemprop="description">
|
||||||
{{ author.bio }}
|
{{ author.bio | markdownify }}
|
||||||
</p>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ analytics:
|
||||||
author:
|
author:
|
||||||
name : "Your Name"
|
name : "Your Name"
|
||||||
avatar : "/assets/images/bio-photo.jpg"
|
avatar : "/assets/images/bio-photo.jpg"
|
||||||
bio : "I am an amazing person."
|
bio : "I am an **amazing** person."
|
||||||
location : "Somewhere"
|
location : "Somewhere"
|
||||||
links:
|
links:
|
||||||
- label: "Your Website"
|
- label: "Your Website"
|
||||||
|
|
Loading…
Reference in a new issue