diff --git a/config.yaml b/config.yaml index cc1d0dd90d1454f538423b1de198abf0aba64bdb..65f5ea4dbe53f5aa257b9c0b541536edc565cc1a 100644 --- a/config.yaml +++ b/config.yaml @@ -1,7 +1,7 @@ params: debug: active: false - productionUrl: https://example.osuny.org + productionUrl: "" keycdn: https://osuny-1b4da.kxcdn.com cookie_banner: enable: false diff --git a/layouts/partials/footer/debug.html b/layouts/partials/footer/debug.html index a8a731718225ec0c671005eef72f5212fbfb98d2..86fc5ac335c3293104e5a8f1b37a3bab76fdc987 100644 --- a/layouts/partials/footer/debug.html +++ b/layouts/partials/footer/debug.html @@ -177,8 +177,6 @@ </style> -{{ $productionUrl := index site.Params.debug "productionUrl" }} - <script> window.addEventListener('keydown', e => { if (e.ctrlKey && e.key === 'g') { @@ -277,7 +275,7 @@ function openInProd() { // To use this debug method, add params.productionUrl key to your hugo config.yaml - const productionUrl = "{{ $productionUrl }}"; + const productionUrl = "{{ site.Params.debug.productionUrl }}"; if (productionUrl) { window.open(`${productionUrl}${window.location.pathname}`); }