athul / archie

A minimal Hugo Theme
https://athul.github.io/archie
MIT License
975 stars 301 forks source link

Trouble deploying theme on Netlify #46

Closed jmwoliver closed 2 years ago

jmwoliver commented 2 years ago

Hello! This is an issue with myself, probably not your theme. I am having trouble getting the CSS and JS to render when I deploy my website to Netlify.

I have your theme forked: https://github.com/jmwoliver/archie

And I am importing it as a submodule to my website: https://github.com/jmwoliver/website

I then hooked it into Netlify to deploy from that repo. That is deployed here: https://competent-goodall-6e9101.netlify.app/

Looking at the console logs, it looks like it can't get the JS (and I'm assuming the CSS):

Loading failed for the <script> with source “https://jmw.sh/js/feather.min.js”. [competent-goodall-6e9101.netlify.app:18:1](https://competent-goodall-6e9101.netlify.app/)
Loading failed for the <script> with source “https://jmw.sh/js/themetoggle.js”. [competent-goodall-6e9101.netlify.app:49:1](https://competent-goodall-6e9101.netlify.app/)
Uncaught ReferenceError: feather is not defined
    <anonymous> https://competent-goodall-6e9101.netlify.app/:100

My baseURL in config.toml is https://jmw.sh/, but I haven't done the DNS stuff to route the custom domain to the Netlify address, I was waiting to do that until I got this issue figured out. Could that be my problem, I need to route it first?

Sorry for the lame questions, I'm new to Hugo and deploying on Netlify and using a custom domain, so I'm not sure where the disconnect is. Any help would be appreciated! (P.S. your theme is great, I really like how it looks 😄)

What it looks ilke:

Screen Shot 2022-02-18 at 9 58 22 AM

What it should look like:

Screen Shot 2022-02-18 at 9 58 28 AM
jmwoliver commented 2 years ago

Once I set up all the DNS records to route everything to jmw.sh and let it propagate, it started working. Nothing to see here, thanks again for the great theme. 😄

athul commented 2 years ago

Glad that you figured it out 🔥 . I didn't see this issue 😅 , really sorry