DEV Community

Discussion on: Using Mixins with PugJS

Collapse
 
mariana0pachon profile image
Mariana Pachón Puentes

Hello! Not sure if this is the place to ask but I wanted to test deploying to GitHub pages before developing further. My folder structure is something similar to yours. The problem: GitHub pages is only showing the Readme. I've read that it has to do with the root directory not having an index.html, and defaulting to render the readme. I have tried some solutions but it might be different for Pug because I still have the same issue. Is there anything you could help with for this? Thank you!

project_folder/

  • README.md
  • index.js
  • node_modules/
  • package.json
  • package-lock.json
  • assets/
    • images/
    • scripts/
    • styles/
  • views/
    • index.pug
    • layouts/
    • views/
Collapse
 
mommocmoc profile image
mommocmoc

As I know, GitHub Pages support static sites only.
See this : stackoverflow.com/a/15719098