From 52990a3cc16cf1064daf57ecde42e86d1cc2c0ed Mon Sep 17 00:00:00 2001 From: Adrian Moreno Date: Mon, 13 Mar 2017 10:06:38 +0100 Subject: Enable markdown formatting on landing page descriptions (fixes #59) --- layouts/partials/features.html | 4 ++-- layouts/partials/footer.html | 6 +++--- layouts/partials/recent_posts.html | 2 +- layouts/partials/testimonials.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'layouts/partials') 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 @@

{{ $element.name }}

-

{{ $element.description }}

+

{{ $element.description | markdownify }}

{{ if or (eq (mod $index 3) 2) (eq $index (sub (len $.Site.Data.features) 1 )) }} - {{ end }} + {{ end }} {{ end }} 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 @@

{{ i18n "aboutUs" }}

- {{ .Site.Params.about_us | safeHTML }} + {{ .Site.Params.about_us | markdownify }} @@ -15,7 +15,7 @@
- {{ if isset .Site.Params "recent_posts" }} {{ if .Site.Params.recent_posts.enable }} + {{ if isset .Site.Params "recent_posts" }} {{ if .Site.Params.recent_posts.enable }}

{{ i18n "recentPosts" }}

@@ -48,7 +48,7 @@

{{ i18n "contactTitle" }}

- {{ .Site.Params.address | safeHTML }} + {{ .Site.Params.address | markdownify }} {{ i18n "contactGoTo" }} 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 @@

- {{ .Site.Params.recent_posts.subtitle }} + {{ .Site.Params.recent_posts.subtitle | markdownify }}

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 @@

- {{ .Site.Params.testimonials.subtitle }} + {{ .Site.Params.testimonials.subtitle | markdownify }}

@@ -20,7 +20,7 @@
  • -

    {{ .text }}

    +

    {{ .text | markdownify }}

    -- cgit v1.2.3