diff --git a/_data/for_business.yml b/_data/for_business.yml index e11bf6ff..984a8bfc 100644 --- a/_data/for_business.yml +++ b/_data/for_business.yml @@ -1,12 +1,10 @@ -header: - ref: business - title: For Business - text: | - This pipe does something a little different. - It preserves the breaks. - This is really helpful for code samples, - since you can format the code samples with - the appropriate +ref: business +link: + internal: business +title: For Business +text: | + This pipe does something a little different. It preserves the breaks. + This is really helpful for code samples, since you can format the code samples with the appropriate features: - title: mountain bikes diff --git a/_data/for_edu.yml b/_data/for_edu.yml index 856af2a9..faa00d9e 100644 --- a/_data/for_edu.yml +++ b/_data/for_edu.yml @@ -1,8 +1,9 @@ -header: - ref: edu - title: For Education - text: | - Electronic Labs are creative places. Whether your institution works with K12 or post-grads - organisation and tooling is challenging. Let InvenTree help you calm the storm! +ref: edu +link: + internal: edu +title: For Education +text: | + Electronic Labs are creative places. Whether your institution works with K12 or post-grads - organisation and tooling is challenging. Let InvenTree help you calm the storm! features: - title: Open Source - Open Knowledge diff --git a/_data/for_maker.yml b/_data/for_maker.yml index d7790814..cefac749 100644 --- a/_data/for_maker.yml +++ b/_data/for_maker.yml @@ -1,9 +1,10 @@ -header: - ref: maker - title: For Maker - text: | - This pipe does something a little different. - It preserves the breaks. +ref: maker +link: + internal: maker +title: For Maker +text: | + This pipe does something a little different. + It preserves the breaks. features: diff --git a/_includes/features.html b/_includes/features.html index f66e744a..f78c12dc 100644 --- a/_includes/features.html +++ b/_includes/features.html @@ -2,16 +2,17 @@
- +
-

{{ include.data.header.title }}

+

{{ include.data.title }}

{% if include.link %} - {% include learn_more.html %} + {% assign link=include.data.link|default:include.link %} + {% include learn_more.html %} {% endif %}
-

{{ include.data.header.text }}

+

{{ include.data.text }}

diff --git a/index.md b/index.md index 53a8cb07..83beb7c1 100644 --- a/index.md +++ b/index.md @@ -8,11 +8,11 @@ main_page: True {% include functions.html data=site.data.general.function %} -{% include features.html data=site.data.for_maker link='/maker' %} +{% include features.html data=site.data.for_maker link=true %} -{% include features.html data=site.data.for_business link='/business' %} +{% include features.html data=site.data.for_business link=true%} -{% include features.html data=site.data.for_edu link='/education' %} +{% include features.html data=site.data.for_edu link=true %} {% include stats.html data=site.data.general.stats %}