From 04626195b29ededb953ff0682c611638850a22cb Mon Sep 17 00:00:00 2001 From: Nicole Date: Mon, 24 Nov 2025 19:50:09 +0000 Subject: [PATCH 1/5] WIP: Add uklibraries/UKL_HeaderFooter implementation --- app/views/layouts/application.mustache | 5 ++++ app/views/layouts/universal_header.mustache | 30 +++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 app/views/layouts/universal_header.mustache diff --git a/app/views/layouts/application.mustache b/app/views/layouts/application.mustache index 316a0d4..5ad592e 100644 --- a/app/views/layouts/application.mustache +++ b/app/views/layouts/application.mustache @@ -1,6 +1,7 @@ + {{>universal_header}} {{title}}{{^title}}Welcome to ExploreUK{{/title}} {{#css}} @@ -38,5 +39,9 @@ {{>footer}} {{>viewer}} + + + + diff --git a/app/views/layouts/universal_header.mustache b/app/views/layouts/universal_header.mustache new file mode 100644 index 0000000..8a5417f --- /dev/null +++ b/app/views/layouts/universal_header.mustache @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 2cf1ff3fff2ee35c3d3b7584cb4c01e71acd5a4d Mon Sep 17 00:00:00 2001 From: Nicole Date: Mon, 24 Nov 2025 21:32:14 +0000 Subject: [PATCH 2/5] WIP: UK libraries specific implementation of global header --- app/views/layouts/nav.mustache | 1 - app/views/layouts/universal_header.mustache | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/layouts/nav.mustache b/app/views/layouts/nav.mustache index 0ba67c9..b9e664b 100644 --- a/app/views/layouts/nav.mustache +++ b/app/views/layouts/nav.mustache @@ -1,4 +1,3 @@ -
{{> repo}} {{#requestable}} diff --git a/app/views/layouts/universal_header.mustache b/app/views/layouts/universal_header.mustache index 8a5417f..49578b6 100644 --- a/app/views/layouts/universal_header.mustache +++ b/app/views/layouts/universal_header.mustache @@ -1,5 +1,5 @@ - + From 9c8de50525a514a541ae2bb1cf7315609d9ffa64 Mon Sep 17 00:00:00 2001 From: Nicole Date: Tue, 25 Nov 2025 13:54:38 +0000 Subject: [PATCH 3/5] add updated script for UKL_HeaderFooter implementation --- app/views/layouts/universal_header.mustache | 37 ++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/universal_header.mustache b/app/views/layouts/universal_header.mustache index 49578b6..5f4e81e 100644 --- a/app/views/layouts/universal_header.mustache +++ b/app/views/layouts/universal_header.mustache @@ -1,3 +1,4 @@ + @@ -26,5 +27,39 @@ - + + \ No newline at end of file From b27af12f188e1a023d27dbbc7664f28273368e3b Mon Sep 17 00:00:00 2001 From: Nicole Date: Tue, 25 Nov 2025 16:04:19 +0000 Subject: [PATCH 4/5] refactor universal footer into it's own layout; replace universal header meta tags with updated script; add implementation details to readme --- README.md | 8 ++++++ app/views/layouts/application.mustache | 5 +--- app/views/layouts/universal_footer.mustache | 3 +++ app/views/layouts/universal_header.mustache | 27 --------------------- 4 files changed, 12 insertions(+), 31 deletions(-) create mode 100644 app/views/layouts/universal_footer.mustache diff --git a/README.md b/README.md index 67dd15d..1317dfc 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,14 @@ If your usecase is development, the docker-compose.yml file will start an NGINX Once your findingaids are installed, use `docker compose up` to start your development environment. +Header/footer implementation notes +--------------------------------------------------------- +The UKLibraries specific implementation of the University branded universal and global headers, and universal footer, are semi-dynamically implemented in this project by copying a static script into `universal_header.mustache` and `universal_footer.mustache` from [UKL_HeaderFooter](https://github.com/uklibraries/UKL_HeaderFooter). + +To update the site title, menu items, or to include a custom logo or search block, you must edit the [exploreukConfig.js](https://github.com/uklibraries/UKL_HeaderFooter/blob/main/js/config/sites/exploreuk/exploreukConfig.js) file in the UKL_HeaderFooter repo, and then push the updated file to [lib.uky.edu](https://lib.uky.edu/webparts/ukhdr/prod/js/config/sites/exploreuk/exploreukConfig.js). + +See [UKL_HeaderFooter repo](https://github.com/uklibraries/UKL_HeaderFooter) for additional details. + Copyright --------- diff --git a/app/views/layouts/application.mustache b/app/views/layouts/application.mustache index 5ad592e..3ee7ce1 100644 --- a/app/views/layouts/application.mustache +++ b/app/views/layouts/application.mustache @@ -39,9 +39,6 @@
{{>footer}} {{>viewer}} - - - - + {{>universal_footer}} diff --git a/app/views/layouts/universal_footer.mustache b/app/views/layouts/universal_footer.mustache new file mode 100644 index 0000000..e0da622 --- /dev/null +++ b/app/views/layouts/universal_footer.mustache @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/app/views/layouts/universal_header.mustache b/app/views/layouts/universal_header.mustache index 5f4e81e..dd1a628 100644 --- a/app/views/layouts/universal_header.mustache +++ b/app/views/layouts/universal_header.mustache @@ -1,30 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - From 87f9cb3f62ad4edc808f55fc985d1f7c10c03673 Mon Sep 17 00:00:00 2001 From: Nicole Date: Tue, 25 Nov 2025 17:43:58 +0000 Subject: [PATCH 5/5] remove repo specific logo rendering; add tab nav margin --- app/assets/css/extra.css | 1 + app/views/layouts/nav.mustache | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/css/extra.css b/app/assets/css/extra.css index 05185ce..3fdc208 100644 --- a/app/assets/css/extra.css +++ b/app/assets/css/extra.css @@ -77,6 +77,7 @@ label { .nav-tabs { float: right; + margin: .5rem 0 0; } .container-fluid { diff --git a/app/views/layouts/nav.mustache b/app/views/layouts/nav.mustache index b9e664b..66adcbd 100644 --- a/app/views/layouts/nav.mustache +++ b/app/views/layouts/nav.mustache @@ -1,5 +1,5 @@
- {{> repo}} + {{! > repo}} {{#requestable}}