diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-24 12:10:15 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-24 12:10:15 +0300 |
commit | 21d8d878ade7595ecb80681510386d797fbc76dc (patch) | |
tree | 9ea7d418850892100da56054d60fbbe35643c676 /layouts | |
parent | e24761e529cdda48d8ee0d7fb02364ebeeef6495 (diff) |
:sparkles: Drive intro content from data instead of config
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/intro.html | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/layouts/partials/intro.html b/layouts/partials/intro.html index b76fabd..55932af 100644 --- a/layouts/partials/intro.html +++ b/layouts/partials/intro.html @@ -1,31 +1,34 @@ <!-- Intro --> +{{ $section1 := index .Site.Data.home.intro.sections 0 }} +{{ $section2 := index .Site.Data.home.intro.sections 1 }} +{{ $section3 := index .Site.Data.home.intro.sections 2 }} <section id="intro" class="container"> <div class="row"> <div class="4u 12u(mobile)"> <section class="first"> - <i class='icon featured {{ .Site.Params.Intro.icon1 }}'></i> + <i class='icon featured {{ $section1.icon }}'></i> <header> - <h2>{{ .Site.Params.Intro.title1 }}</h2> + <h2>{{ $section1.title }}</h2> </header> - <p>{{ .Site.Params.Intro.description1 }}</p> + <p>{{ $section1.description }}</p> </section> </div> <div class="4u 12u(mobile)"> <section class="middle"> - <i class="icon featured alt {{ .Site.Params.Intro.icon2 }}"></i> + <i class="icon featured alt {{ $section2.icon }}"></i> <header> - <h2>{{ .Site.Params.Intro.title2 }}</h2> + <h2>{{ $section2.title }}</h2> </header> - <p>{{ .Site.Params.Intro.description2 }}</p> + <p>{{ $section2.description }}</p> </section> </div> <div class="4u 12u(mobile)"> <section class="last"> - <i class="icon featured alt2 {{ .Site.Params.Intro.icon3 }}"></i> + <i class="icon featured alt2 {{ $section3.icon }}"></i> <header> - <h2>{{ .Site.Params.Intro.title3 }}</h2> + <h2>{{ $section3.title }}</h2> </header> - <p>{{ .Site.Params.Intro.description3 }}</p> + <p>{{ $section3.description }}</p> </section> </div> </div> |