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

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Moreno <adrian@morenomartinez.com>2016-06-29 16:52:03 +0300
committerAdrian Moreno <adrian@morenomartinez.com>2016-06-29 16:52:03 +0300
commit8f067fb99323e5053006053c19f2a7b3341b23cc (patch)
tree5198f45b1b0fd62f342ef20b5d0650651713d1e5 /layouts/partials/blog.html
parent50278311b1e4de148a4276616a5d391d179b2dbf (diff)
Updates layouts
Diffstat (limited to 'layouts/partials/blog.html')
-rw-r--r--layouts/partials/blog.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html
index 15bc869..555efa4 100644
--- a/layouts/partials/blog.html
+++ b/layouts/partials/blog.html
@@ -6,9 +6,11 @@
<h2>From our blog</h2>
</div>
- <p class="lead">Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae
- est. Mauris placerat eleifend leo. <a href="#" class="accent">Check our blog!</span>
+ {{ if isset .Site.Params "blog_intro" }}
+ <p class="lead">
+ {{ .Site.Params.blog_intro }}
</p>
+ {{ end }}
<!-- *** BLOG HOMEPAGE *** -->
@@ -18,7 +20,7 @@
{{ range first 4 $posts.Pages }}
<div class="col-md-3 col-sm-6">
<div class="box-image-text blog">
- {{ if .Params.banner }}
+ {{ if isset .Params "banner" }}
<div class="top">
<div class="image">
<img src="{{ .Site.BaseURL}}{{ .Params.banner }}" alt="" class="img-responsive">
@@ -35,7 +37,7 @@
<div class="content">
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
- {{ if .Params.author }}
+ {{ if isset .Params "author" }}
<p class="author-category">By <a href="#">{{ .Params.author }}</a> on {{ .Date.Format "January 2, 2006" }}
{{ end }}
</p>