Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejh/hugo-theme-cactus-plus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2017-07-21 22:56:51 +0300
committerGitHub <noreply@github.com>2017-07-21 22:56:51 +0300
commitc054a84fda3ec1ffccf6067761e70e4ab26293bc (patch)
treec2385011733e216145c9d7acb88d8487efee33f2
parent6d881da41466ca741c507a228af993a76df00097 (diff)
Conditionally generate the bio
Fixes rstudio/blogdown#156
-rw-r--r--layouts/partials/profile.html4
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>