From 15281f9440c3f2384e9e6d9846a661b2f92ba2a8 Mon Sep 17 00:00:00 2001 From: Bryan Quigley Date: Sun, 21 Apr 2024 18:03:19 -0700 Subject: [PATCH] Drop javascript from footer and add to only the pages it's needed on The goal is to make it easier to restructure/reduce javascript in the future if we only need to test the 3 pages it acts on. --- _includes/footer.html | 3 --- _layouts/category.html | 2 ++ _layouts/organization.html | 2 ++ datasets.html | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 2642b14b7..89ae5a132 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,4 +1 @@ - - - diff --git a/_layouts/category.html b/_layouts/category.html index 6df311684..49ef5fc1f 100644 --- a/_layouts/category.html +++ b/_layouts/category.html @@ -5,6 +5,8 @@ {% assign datasets = site.datasets | where: "category", page.name %} {% assign datasets_count = datasets | size %} + +
{% if page.logo and page.logo != empty %} diff --git a/_layouts/organization.html b/_layouts/organization.html index e35abc3d5..049a28ec4 100644 --- a/_layouts/organization.html +++ b/_layouts/organization.html @@ -5,6 +5,8 @@ {% assign datasets = site.datasets | where:"organization", page.title %} {% assign datasets_count = datasets | size %} + +
{% if page.logo and page.logo != empty %} diff --git a/datasets.html b/datasets.html index 1a5357633..712a2f28f 100644 --- a/datasets.html +++ b/datasets.html @@ -6,6 +6,8 @@ {% include breadcrumbs.html %} {% assign datasets_count = site.datasets | size %} + +

Categories