~xdavidwu/xdavidwu.link

ab4cf38a773a1e24e48cb0d92cbfe44218f774c6 — Ravi 4 years ago fd06f83
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>
2 files changed, 4 insertions(+), 4 deletions(-)

M _config.yml
M _includes/author-profile.html
M _config.yml => _config.yml +1 -1
@@ 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:

M _includes/author-profile.html => _includes/author-profile.html +3 -3
@@ 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>