still-ex / still

A composable Elixir static site generator
https://stillstatic.io
ISC License
252 stars 10 forks source link

Fail to load `css/theme.css` on GitHub Pages of a repository #195

Open zacky1972 opened 1 year ago

zacky1972 commented 1 year ago

I deployed my page on my repository that is generated by Still, but failed to load css/theme.css in case of GitHub Pages, though succeeded this in case of localhost.

Generated header is here:

<!DOCTYPE html>
<html>
<head>
    <title>TITLE</title>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <link rel="stylesheet" media=all href="/css/theme-mLOByLVRdNnRCEb1X4cC3w==.css"/>
</head>

I tested the following header works well:

<!DOCTYPE html>
<html>
<head>
    <title>TITLE</title>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <link rel="stylesheet" media=all href="https://USER.github.io/REPOSITORY/css/theme-mLOByLVRdNnRCEb1X4cC3w==.css"/>
</head>