From 7dc608b5cdb39f90f342494b7eb19017c362a01c Mon Sep 17 00:00:00 2001 From: Olivier Goulet <olivier.goulet@eclipse-foundation.org> Date: Mon, 10 Jul 2023 16:39:53 -0400 Subject: [PATCH] Hotfix: Load datatables only on known page --- layouts/partials/footer_custom.html | 3 --- layouts/partials/security/known/data_tables.html | 4 ---- layouts/shortcodes/pages/security/known.html | 7 +++++++ 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 layouts/partials/footer_custom.html delete mode 100644 layouts/partials/security/known/data_tables.html diff --git a/layouts/partials/footer_custom.html b/layouts/partials/footer_custom.html deleted file mode 100644 index 914bf00b..00000000 --- a/layouts/partials/footer_custom.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ block "datatables" . }} - {{ . }} -{{ end }} diff --git a/layouts/partials/security/known/data_tables.html b/layouts/partials/security/known/data_tables.html deleted file mode 100644 index 83668345..00000000 --- a/layouts/partials/security/known/data_tables.html +++ /dev/null @@ -1,4 +0,0 @@ -{{ define "datatables" }} - <link rel="stylesheet" href="/public/css/datatables.net-dt.css"> - <script async src="/public/js/known-vulnerabilities.js"></script> -{{ end }} diff --git a/layouts/shortcodes/pages/security/known.html b/layouts/shortcodes/pages/security/known.html index b82a54e3..6e6f5e33 100644 --- a/layouts/shortcodes/pages/security/known.html +++ b/layouts/shortcodes/pages/security/known.html @@ -10,3 +10,10 @@ </thead> </table> </div> + +{{/* + @todo: Remove hotfix for + https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues/274 +*/}} +<link rel="stylesheet" href="/public/css/datatables.net-dt.css"> +<script async src="/public/js/known-vulnerabilities.js"></script> -- GitLab