fix: base path for github pages
This commit is contained in:
2
index.js
2
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',
|
||||
|
||||
@@ -6,23 +6,23 @@
|
||||
<meta name="description" content="{{ description }}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ site.subject }} — {{ title }}</title>
|
||||
<link rel="preload" href="/assets/css/reset.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<link rel="preload" href="/assets/css/theme.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<link rel="preload" href="/assets/css/helpers.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<link rel="stylesheet" href="/assets/css/main.css">
|
||||
<link rel="stylesheet" href="/assets/css/typography.css">
|
||||
<link rel="stylesheet" href="/assets/css/header.css">
|
||||
<link rel="stylesheet" href="/assets/css/footer.css">
|
||||
<link rel="preload" href="{{ site.basePath }}/assets/css/reset.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<link rel="preload" href="{{ site.basePath }}/assets/css/theme.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<link rel="preload" href="{{ site.basePath }}/assets/css/helpers.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<link rel="stylesheet" href="{{ site.basePath }}/assets/css/main.css">
|
||||
<link rel="stylesheet" href="{{ site.basePath }}/assets/css/typography.css">
|
||||
<link rel="stylesheet" href="{{ site.basePath }}/assets/css/header.css">
|
||||
<link rel="stylesheet" href="{{ site.basePath }}/assets/css/footer.css">
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/reset.css">
|
||||
<link rel="stylesheet" href="/assets/css/theme.css">
|
||||
<link rel="stylesheet" href="/assets/css/helpers.css">
|
||||
<link rel="stylesheet" href="{{ site.basePath }}/assets/css/reset.css">
|
||||
<link rel="stylesheet" href="{{ site.basePath }}/assets/css/theme.css">
|
||||
<link rel="stylesheet" href="{{ site.basePath }}/assets/css/helpers.css">
|
||||
</noscript>
|
||||
</head>
|
||||
|
||||
<body id="top">
|
||||
<header>
|
||||
<img src="/assets/images/brand.jpg" alt="Logo du {{ site.subject }}" />
|
||||
<img src="{{ site.basePath }}/assets/images/brand.jpg" alt="Logo du {{ site.subject }}" />
|
||||
<nav>
|
||||
{{#each collections.nav}}
|
||||
<a href="{{ this.path }}">{{ this.title }}</a>
|
||||
@@ -75,8 +75,8 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="/assets/scripts/theme-toggle.js" async defer ></script>
|
||||
<script src="/assets/scripts/page-size.js" async defer ></script>
|
||||
<script src="{{ site.basePath }}/assets/scripts/theme-toggle.js" async defer ></script>
|
||||
<script src="{{ site.basePath }}/assets/scripts/page-size.js" async defer ></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -3,7 +3,7 @@ title: Accueil
|
||||
nav_order: 0
|
||||
---
|
||||
|
||||

|
||||

|
||||
|
||||
# Présentation de l'asso
|
||||
|
||||
|
||||
Reference in New Issue
Block a user