From 5bab708ea64b74b48f752f835ad49b4ac1d9bbbf Mon Sep 17 00:00:00 2001 From: Curtis Timson Date: Sat, 24 Feb 2018 09:20:37 +0000 Subject: :recycle: Replace hugo variables with with statements --- layouts/partials/intro.html | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/layouts/partials/intro.html b/layouts/partials/intro.html index 381cc12..d5ce1b0 100644 --- a/layouts/partials/intro.html +++ b/layouts/partials/intro.html @@ -1,43 +1,48 @@ -{{ $section1 := index .Site.Data.home.intro.sections 0 }} -{{ $section2 := index .Site.Data.home.intro.sections 1 }} -{{ $section3 := index .Site.Data.home.intro.sections 2 }} -{{ $button1 := index .Site.Data.home.intro.buttons 0 }} -{{ $button2 := index .Site.Data.home.intro.buttons 1 }}
- + {{ with index .Site.Data.home.intro.sections 0 }} +
-

{{ $section1.title }}

+

{{ .title }}

-

{{ $section1.description }}

+

{{ .description }}

+ {{ end }}
- + {{ with index .Site.Data.home.intro.sections 1 }} +
-

{{ $section2.title }}

+

{{ .title }}

-

{{ $section2.description }}

+

{{ .description }}

+ {{ end }}
- + {{ with index .Site.Data.home.intro.sections 2 }} +
-

{{ $section3.title }}

+

{{ .title }}

-

{{ $section3.description }}

+

{{ .description }}

+ {{ end }}
\ No newline at end of file -- cgit v1.2.3