From 3a00e7c680caa966c656fcc40f5ed7f161a17f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Fri, 7 Feb 2025 16:33:37 +0100 Subject: [PATCH] fix: base path for github pages --- index.js | 2 +- layouts/default.hbs | 26 +++++++++++++------------- src/index.md | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/index.js b/index.js index 59b3a35..4f0eaf8 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ const prod = process.env.NODE_ENV === 'production'; const sitedata = { site: { - base: !prod ? 'http://localhost:3000' : 'https://lowtech-lab-grenoble.fr', + basePath: !prod ? '' : '/ltg-grenoble', subject: 'Low-tech Lab - Grenoble', author: '© Low-tech Lab - Grenoble', contact: 'contact@lowtechlabgrenoble.org', diff --git a/layouts/default.hbs b/layouts/default.hbs index ab70cf9..4293dbe 100644 --- a/layouts/default.hbs +++ b/layouts/default.hbs @@ -6,23 +6,23 @@ {{ site.subject }} — {{ title }} - - - - - - - + + + + + + +
- Logo du {{ site.subject }} + Logo du {{ site.subject }}