Skip to content

Commit

Permalink
Make index generic
Browse files Browse the repository at this point in the history
  • Loading branch information
baasgeo committed Sep 30, 2024
1 parent df88a59 commit 155329c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lcms/algemeen/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<body>
<script>
(async () => {
const base = window.location.pathname.split('/')[2];
const subdir = window.location.pathname.split('/')[3];
const path = window.location.pathname.replace('/diversen/', '/diversen/contents/');
const main = 'https://github.com/imroi/diversen/blob/main/';
const response = await fetch('https://api.github.com/repos/imroi/diversen/contents/' + base + '/' + subdir);
const response = await fetch('https://api.github.com/repos/imroi' + path);
const data = await response.json();
let htmlString = `<div class="container">
<nav class="navbar navbar-expand-lg">
Expand Down

0 comments on commit 155329c

Please sign in to comment.