Added some defensive programming if the site doesn't have recommendations.
This commit is contained in:
parent
bb07ca780e
commit
a9f0437fc7
|
@ -2,7 +2,7 @@
|
|||
<header>
|
||||
<h1>Recommendations</h1>
|
||||
</header>
|
||||
{{ if .Site.Data.blogrolls.recommendations }}
|
||||
{{ if and (.Site.Data.blogrolls) (.Site.Data.blogrolls.recommendations) }}
|
||||
<ul class="blogroll">
|
||||
{{ range .Site.Data.blogrolls.recommendations }}
|
||||
<li><a href="{{ .url }}">{{ .name }}: <span>{{ (urls.Parse .url).Hostname }}</span></a></li>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"title": "Sidebar for Tiny Theme",
|
||||
"description": "Adds a sidebar to a blog using Tiny Theme",
|
||||
"includes": [
|
||||
|
|
Loading…
Reference in a new issue