diff --git a/home/_data/learn_cta.yml b/home/_data/learn_cta.yml new file mode 100644 index 00000000..d3603adc --- /dev/null +++ b/home/_data/learn_cta.yml @@ -0,0 +1,4 @@ +text: InvenTree provides functions for all kinds of users and parts +btn: + - text: Learn More + link: / diff --git a/home/business.md b/home/business.md index 97b91dea..f0c6654b 100644 --- a/home/business.md +++ b/home/business.md @@ -5,15 +5,12 @@ backLink: false {% include hero.html title=site.tagline title_2='for Business' image='https://dummyimage.com/860x600' color='with InvenTree' %} -{% assign for_b = site.data.for_business %} -{% include features.html data=for_b %} +{% include features.html data=site.data.for_business %} -{% include cta.html text='read more on the site!' %} +{% include cta.html cta=site.data.learn_cta %} -{% assign function = site.data.function %} -{% include functions.html data=function %} +{% include functions.html data=site.data.function %} -{% assign end = site.data.end_cta %} -{% include cta.html cta=end %} +{% include cta.html cta=site.data.end_cta %} --- diff --git a/home/education.md b/home/education.md index 847da998..f5d73da4 100644 --- a/home/education.md +++ b/home/education.md @@ -5,15 +5,12 @@ backLink: false {% include hero.html title=site.tagline title_2='for Education' image='https://dummyimage.com/860x600' color='with InvenTree' %} -{% assign for_e = site.data.for_edu %} -{% include features.html data=for_e %} +{% include features.html data=site.data.for_edu %} -{% include cta.html text='InvenTree provides functions for all kinds of users and parts' link = '/' link_text = 'Learn More' %} +{% include cta.html cta=site.data.learn_cta %} -{% assign function = site.data.function %} -{% include functions.html data=function %} +{% include functions.html data=site.data.function %} -{% assign end = site.data.end_cta %} -{% include cta.html cta=end %} +{% include cta.html cta=site.data.end_cta %} --- diff --git a/home/index.md b/home/index.md index 14c0c943..3bd6a272 100644 --- a/home/index.md +++ b/home/index.md @@ -5,23 +5,16 @@ backLink: false {% include hero.html title=site.tagline title_2='and more' image='https://dummyimage.com/860x600' color='with InvenTree' %} -{% assign function = site.data.function %} -{% include functions.html data=function %} +{% include functions.html data=site.data.function %} +{% include features.html data=site.data.for_hobby %} -{% assign for_h = site.data.for_hobby %} -{% include features.html data=for_h %} +{% include features.html data=site.data.for_business %} -{% assign for_b = site.data.for_business %} -{% include features.html data=for_b %} +{% include features.html data=site.data.for_edu %} -{% assign for_e = site.data.for_edu %} -{% include features.html data=for_e %} +{% include stats.html data=site.data.stats %} -{% assign stats = site.data.stats %} -{% include stats.html data=stats %} - -{% assign end = site.data.end_cta %} -{% include cta.html cta=end %} +{% include cta.html cta=site.data.end_cta %} ---