diff --git a/content/home/index.md b/content/home/index.md index 174d80805..70418d311 100644 --- a/content/home/index.md +++ b/content/home/index.md @@ -7,6 +7,9 @@ extra: imgPath: home/tf.png --- + + + {{ hero_text_center( diff --git a/templates/_default/base.html b/templates/_default/base.html index 8153974a0..e288c12e6 100644 --- a/templates/_default/base.html +++ b/templates/_default/base.html @@ -42,11 +42,22 @@ {% include "partials/header.html" %} -
- {% include "partials/banner.html" %} +
+ {# Show banner on all pages except /newsroom paths #} + {% set show_banner = true %} + {% if current_path is defined and current_path is starting_with("/newsroom") %} + {% set show_banner = false %} + {% endif %} + {% if show_banner %} + {% include "partials/banner.html" %} + {% endif %} {% block content %}{% endblock %}
+ + + +
{% include "partials/footer.html" %}
diff --git a/templates/partials/banner.html b/templates/partials/banner.html index 2280fc4c4..710d7ab36 100644 --- a/templates/partials/banner.html +++ b/templates/partials/banner.html @@ -9,14 +9,14 @@ +
\ No newline at end of file diff --git a/templates/shortcodes/banner.html b/templates/shortcodes/banner.html new file mode 100644 index 000000000..fc085373f --- /dev/null +++ b/templates/shortcodes/banner.html @@ -0,0 +1,22 @@ + +