lwojcik / eleventy-template-bliss

Single-column blog template for Eleventy focused on simplicity without sacrificing functionality
https://eleventy-bliss.lkmt.us/
MIT License
84 stars 19 forks source link

CSS file not found #81

Closed adevtobe closed 7 months ago

adevtobe commented 8 months ago

First off, I think you theme looks great and I'm excited to use it for my blog however I ran into an issue. After forking it I ran npm install and then npx @11ty/eleventy --serve. When going to localhost:8080 in the browser though, it was evident no CSS was being applied and the console confirmed this. Did I miss a step?

image

image

Nasirahamad88 commented 8 months ago

import your CSS file correctly.

lwojcik commented 8 months ago

Hi @adevtobe, thanks for reaching out!

npx @11ty/eleventy --serve only starts the project but it doesn't build the CSS stylesheet out of SASS source files.

Use npm start or npm run dev.

Or, if you want to stick to using npx @11ty/eleventy --serve, in a separate terminal run npm run build:sass (once) or npm run watch watch:sass (if you want to edit the CSS).

Let me know if you have any more questions!

adevtobe commented 8 months ago

Thanks @lwojcik! I'm moving over from Hexo and this is my first time using eleventy so my only experience so far is following their docs. I should have checked the package.json.

Only other question I have is, is this something that will run fine on Github pages? I wasn't sure if any of the features require an actual backend.

lwojcik commented 8 months ago

Only other question I have is, is this something that will run fine on Github pages? I wasn't sure if any of the features require an actual backend.

Never tried it but quick googling suggests it should be possible: