SSG - First timer #112
Replies: 2 comments 2 replies
-
Regarding the first URL issue... what if you simply change the URL structure in your collection settings to include the I'd expect that behaviour regarding the CSS & JS as if it has a |
Beta Was this translation helpful? Give feedback.
-
I don't think it will ever support this, sorry. You'll need at least a super basic web server. You can just built in PHP by doing |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to use SSG to create a micro website that'll be used at a location where there is no internet connection, so this particular site has to work 100% local.
My hope is I'll be able to run the website by simply dragging the index.html file into the browser and not need to run a local web server.
SSG is working, but I've got a couple of issues.
SSG outputs subpages in folders like this,
This is a problem when running the site locally, as I can't seem to link to these pages... The URLs generated by SSG look like this
Is there a way to output all the pages into the root folder insead? So it'd look more like this?
and make sure the
href
looks like this?I've added these to
ssg.php
But they don't seem to have any affect when viewing the site locally.
Is there a way to get these links to work?
The other issue I have is linking to CSS and JS
index.html
contains thisWhen I drag index.html into the browser, the css file is missing?
It'll only work I remove the first forward slash
The other pages inside subfolders have a similar issue, but require a different fix
Needs the link tag to look in the root
I need to apply this to every image and video link too, which isn't ideal.
Is there a way around this?
Beta Was this translation helpful? Give feedback.
All reactions