Ver Fonte

Fix site links (#3)

* fix links

* no jekyll
beerpsi há 1 ano atrás
pai
commit
c712fd74ad
4 ficheiros alterados com 6 adições e 6 exclusões
  1. 0 0
      .nojekyll
  2. 1 1
      extensions/extensions.js
  3. 3 3
      extensions/index.html
  4. 2 2
      index.html

+ 0 - 0
.nojekyll


+ 1 - 1
extensions/extensions.js

@@ -47,7 +47,7 @@
 
             async init() {
                 try {
-                    const index = await fetch("/index.min.json").then((e) => e.json());
+                    const index = await fetch("../index.min.json").then((e) => e.json());
 
                     this.extensions = index.sort((a, b) => {
                         if ("all" === a.lang && "all" !== b.lang) {

+ 3 - 3
extensions/index.html

@@ -27,7 +27,7 @@
         integrity="sha384-2HpI1Tt4Zv7emgrwKyetd6ouDie+RKolEtNHOdD+KCVHLj1V2fjxryG48h50f0Rw"
         crossorigin="anonymous"
     />
-    <link rel="stylesheet" href="/index.css">
+    <link rel="stylesheet" href="../index.css">
     <script async type="module"
         src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/shoelace-autoloader.js"
         integrity="sha384-ILzDiPYY4je5i95gGzpVe0e88rFqVnoz3i7HPBsRbtEHxfkA7wR8E+PwjCgt1Bin"
@@ -78,7 +78,7 @@
                     <div class="source" :id="extension.pkg.replace('eu.kanade.tachiyomi.extension.', '')">
                         <a :href="`#${extension.pkg.replace('eu.kanade.tachiyomi.extension.', '')}`"
                             class="source__anchor">#</a> <img class="source__icon" :alt="`Icon for ${extension.name}`"
-                            :src="`/icon/${extension.pkg}.png`" loading="lazy" width="42" height="42">
+                            :src="`../icon/${extension.pkg}.png`" loading="lazy" width="42" height="42">
                         <div class="source__info">
                             <div class="source__name">
                                 <span x-text="extension.name.split(': ')[1]"></span> <span class="source__version"
@@ -90,7 +90,7 @@
                             <div class="source__version" x-text="simpleLanguageName(extension.lang)"></div>
                         </div>
                         <sl-button pill size="small" download class="download-button"
-                            :href="`/apk/${extension.apk}`"><sl-icon name="download"></sl-icon></sl-button>
+                            :href="`../apk/${extension.apk}`"><sl-icon name="download"></sl-icon></sl-button>
                     </div>
                 </template>
             </div>

+ 2 - 2
index.html

@@ -26,7 +26,7 @@
         integrity="sha384-2HpI1Tt4Zv7emgrwKyetd6ouDie+RKolEtNHOdD+KCVHLj1V2fjxryG48h50f0Rw"
         crossorigin="anonymous"
     />
-    <link rel="stylesheet" href="/index.css">
+    <link rel="stylesheet" href="index.css">
     <script async type="module"
         src="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/shoelace-autoloader.js"
         integrity="sha384-ILzDiPYY4je5i95gGzpVe0e88rFqVnoz3i7HPBsRbtEHxfkA7wR8E+PwjCgt1Bin"
@@ -70,7 +70,7 @@
     </div>
 
     <div>
-        <p>If you're not using any of the above, download and update extensions from <a class="description__anchor" href="/extensions">the listing page.</a></p>
+        <p>If you're not using any of the above, download and update extensions from <a class="description__anchor" href="./extensions">the listing page.</a></p>
     </div>
 
     <script>Promise.allSettled([customElements.whenDefined("sl-button")]).then((() => { document.body.classList.add("ready") }))</script>