diff --git a/_config.yml b/_config.yml index 614eb261..86d21cee 100644 --- a/_config.yml +++ b/_config.yml @@ -7,7 +7,7 @@ plugin-link: https://repo.invenhost.com/ description: >- InvenTree is an open-source inventory management system which provides intuitive parts management and stock control. - It is at the center of an ecosystem of addins for EDA and CAD tools, API wrapper, deeply integrated plugins and 3rd party tools. + It is at the center of an ecosystem of addins for EDA tools, API wrapper, deeply integrated plugins and 3rd party tools. baseurl: "/home.invenhost.com" url: "" diff --git a/_data/for_business.yml b/_data/for_business.yml index 907b7dab..80904856 100644 --- a/_data/for_business.yml +++ b/_data/for_business.yml @@ -1,6 +1,6 @@ ref: business link: - internal: business + internal: use/business title: For Business text: | lorem ipsum text diff --git a/_data/for_edu.yml b/_data/for_edu.yml index 1b160ab0..2c12e973 100644 --- a/_data/for_edu.yml +++ b/_data/for_edu.yml @@ -1,6 +1,6 @@ ref: edu link: - internal: education + internal: use/education 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! diff --git a/_data/for_maker.yml b/_data/for_maker.yml index d26736f9..0d73e7c7 100644 --- a/_data/for_maker.yml +++ b/_data/for_maker.yml @@ -1,6 +1,6 @@ ref: maker link: - internal: maker + internal: use/maker title: For Maker text: | lorem ipsum text diff --git a/_includes/fnc/link.html b/_includes/fnc/link.html index 919b6a54..eda5ec42 100644 --- a/_includes/fnc/link.html +++ b/_includes/fnc/link.html @@ -1,11 +1,18 @@ +{% capture link %} +{% if include.internal %} + {% link include.internal %} +{% endif %} {% if include.item.site %} {{ site[include.item.site] }} {% elsif include.item.internal %} {{ include.item.internal | relativurl }} {% elsif include.item.link %} - {{ include.item.link }} + {{ include.item.link | include fnc/link.html }} {% elsif include.item.home %} - {{ '/' | relative_url }} -{% else %} + {{ '/' | relative_url }} +{% elsif include.item %} {{ include.item }} -{% endif %} \ No newline at end of file +{% endif %} +{% endcapture %} + +{{ link | strip }} \ No newline at end of file diff --git a/_includes/partial/alert.html b/_includes/partial/alert.html new file mode 100644 index 00000000..bcb50576 --- /dev/null +++ b/_includes/partial/alert.html @@ -0,0 +1,11 @@ +
{{ include.title }}
+{{ include.desc }}
+Find out more about this plugin on the plugin site
+ {% include plugin_card.html plugin=page.plugin %} + {% endif %} +