diff --git a/app/site/_includes/assets.liquid b/app/site/_includes/assets.liquid index 736e4deab8..09e5a2cf5c 100644 --- a/app/site/_includes/assets.liquid +++ b/app/site/_includes/assets.liquid @@ -32,3 +32,4 @@ + diff --git a/app/site/_includes/graph-section.liquid b/app/site/_includes/graph-section.liquid index 685f5ce053..2acf3ead46 100644 --- a/app/site/_includes/graph-section.liquid +++ b/app/site/_includes/graph-section.liquid @@ -1,17 +1,31 @@ -{% assign className = class | default: 'graph-container' %} +{% assign className = class | default: 'graph-container-{{ title | slugify}}' %} {% assign devPath = 'site/_graphs' | append: path %} {% assign distPath = baseurl | append: '/assets/img/graphs' | append: path %} {% assign fileExtension = path | split: '.' | last %} +{% assign modal_description = modal_description %} {% if devPath | fileExists %}
-

{{ title }}

-
- {% if fileExtension == 'svg' %} - - {% else %} - - {% endif %} -
+
+

{{ title }}

+
+ {% if fileExtension == 'svg' %} + + {% else %} + + {% endif %} +
+ + {% render "modal-content", title: title, modal_description: modal_description %} +
{% endif %} diff --git a/app/site/_includes/graph-toggle.liquid b/app/site/_includes/graph-toggle.liquid index bc693f6ed9..e3eef876dd 100644 --- a/app/site/_includes/graph-toggle.liquid +++ b/app/site/_includes/graph-toggle.liquid @@ -1,6 +1,7 @@ {% assign graphName = name| append: "-graph" %} {% assign buttonName = name | append: "-button-" %} {% assign graphsCheck = true %} +{% assign modal_description = modal_description %} {% comment %} Check for file existence of graphs {% endcomment %} {% for path in graphs %} @@ -13,36 +14,49 @@ {% comment %} Render components accordingly {% endcomment %} {% if graphsCheck %} -
-

{{ title }}

-
{% endfor %} - - {% for graph in graphs %} - {% if forloop.first %} -
- {% else %} - - {% endfor %} +
{% endif %} \ No newline at end of file diff --git a/app/site/_includes/modal-content.liquid b/app/site/_includes/modal-content.liquid new file mode 100644 index 0000000000..74a422062e --- /dev/null +++ b/app/site/_includes/modal-content.liquid @@ -0,0 +1,37 @@ +
+ +
\ No newline at end of file diff --git a/app/site/_includes/nav.liquid b/app/site/_includes/nav.liquid index ef6fe74621..22a5b9b326 100644 --- a/app/site/_includes/nav.liquid +++ b/app/site/_includes/nav.liquid @@ -13,11 +13,6 @@