diff options
author | Yihui Xie <xie@yihui.name> | 2017-07-21 22:56:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 22:56:51 +0300 |
commit | c054a84fda3ec1ffccf6067761e70e4ab26293bc (patch) | |
tree | c2385011733e216145c9d7acb88d8487efee33f2 | |
parent | 6d881da41466ca741c507a228af993a76df00097 (diff) |
Conditionally generate the bio
Fixes rstudio/blogdown#156
-rw-r--r-- | layouts/partials/profile.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html index d58f285..2ab115c 100644 --- a/layouts/partials/profile.html +++ b/layouts/partials/profile.html @@ -5,7 +5,7 @@ <img id="avatar" class="2x" src="{{ .Site.BaseURL }}images/avatar.png"/> </a> <h1>{{ .Site.Params.name }}</h1> - <h2>{{ .Site.Params.bio | markdownify }}</h2> + {{ with .Site.Params.bio }}<h2>{{ . | markdownify }}</h2>{{ end }} </header> </section> -</div>
\ No newline at end of file +</div> |