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>2017-03-13 12:06:38 +0300
committerAdrian Moreno <adrian@morenomartinez.com>2017-03-13 12:06:38 +0300
commit52990a3cc16cf1064daf57ecde42e86d1cc2c0ed (patch)
tree3ebf38f721cdab0a85577eb304a4b3bd947184b0 /layouts/partials
parent984b0a62375e55c69822373198d5217d0737efdb (diff)
Enable markdown formatting on landing page descriptions (fixes #59)
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/features.html4
-rw-r--r--layouts/partials/footer.html6
-rw-r--r--layouts/partials/recent_posts.html2
-rw-r--r--layouts/partials/testimonials.html4
4 files changed, 8 insertions, 8 deletions
diff --git a/layouts/partials/features.html b/layouts/partials/features.html
index ffc9385..9260d3f 100644
--- a/layouts/partials/features.html
+++ b/layouts/partials/features.html
@@ -14,13 +14,13 @@
<i class="{{ .icon }}"></i>
</div>
<h3>{{ $element.name }}</h3>
- <p>{{ $element.description }}</p>
+ <p>{{ $element.description | markdownify }}</p>
</div>
</div>
{{ if or (eq (mod $index 3) 2) (eq $index (sub (len $.Site.Data.features) 1 )) }}
</div>
</div>
- {{ end }}
+ {{ end }}
{{ end }}
</div>
</section>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 5ce367f..06cd6b2 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -5,7 +5,7 @@
<div class="col-md-4 col-sm-6">
<h4>{{ i18n "aboutUs" }}</h4>
- {{ .Site.Params.about_us | safeHTML }}
+ {{ .Site.Params.about_us | markdownify }}
<hr class="hidden-md hidden-lg hidden-sm">
@@ -15,7 +15,7 @@
<div class="col-md-4 col-sm-6">
- {{ if isset .Site.Params "recent_posts" }} {{ if .Site.Params.recent_posts.enable }}
+ {{ if isset .Site.Params "recent_posts" }} {{ if .Site.Params.recent_posts.enable }}
<h4>{{ i18n "recentPosts" }}</h4>
<div class="blog-entries">
@@ -48,7 +48,7 @@
<h4>{{ i18n "contactTitle" }}</h4>
- {{ .Site.Params.address | safeHTML }}
+ {{ .Site.Params.address | markdownify }}
<a href="/contact" class="btn btn-small btn-template-main">{{ i18n "contactGoTo" }}</a>
diff --git a/layouts/partials/recent_posts.html b/layouts/partials/recent_posts.html
index cb6f121..9d639eb 100644
--- a/layouts/partials/recent_posts.html
+++ b/layouts/partials/recent_posts.html
@@ -9,7 +9,7 @@
</div>
<p class="lead">
- {{ .Site.Params.recent_posts.subtitle }}
+ {{ .Site.Params.recent_posts.subtitle | markdownify }}
</p>
<!-- *** BLOG HOMEPAGE *** -->
diff --git a/layouts/partials/testimonials.html b/layouts/partials/testimonials.html
index ddcbebf..ec25984 100644
--- a/layouts/partials/testimonials.html
+++ b/layouts/partials/testimonials.html
@@ -10,7 +10,7 @@
</div>
<p class="lead">
- {{ .Site.Params.testimonials.subtitle }}
+ {{ .Site.Params.testimonials.subtitle | markdownify }}
</p>
<!-- *** TESTIMONIALS CAROUSEL *** -->
@@ -20,7 +20,7 @@
<li class="item">
<div class="testimonial same-height-always">
<div class="text">
- <p>{{ .text }}</p>
+ <p>{{ .text | markdownify }}</p>
</div>
<div class="bottom">
<div class="icon"><i class="fa fa-quote-left"></i>