Theme not getting added on website deployed through firebase


#1

I did all steps https://medium.freecodecamp.org/hugo-firebase-how-to-create-your-own-dynamic-website-for-free-in-minutes-463b4fb7bf5a from this tutorial.I am glad that my first website when online but i does not have any theme attached.It looks like a website just made using html.I use the ‘Highlights’ theme .What shall i do to add theme.FYI theme is in default theme folder
PS:website allenjohnson.tk


#2

It seems that you have a problem loading your site’s stylesheet.

According to the source of your page the CSS URL is missing a slash right after your BaseURL (domain)

<link rel="stylesheet" href="https://allenjohnson.tkcss/main.css" />


#3

I have stumbled through this in the past. Ever since then, I make it a point to always end by baseURL with a / (whether I choose to use absURL/relURL in my templates or not). I have yet to come across a use case where suffixing baseURL with / is a bad idea.

@bep Do you have comments about this? Should we document the recommendation to always end baseURL with /?


#4

baseurl should end with / form my experience.I did all the stuff from different threads but a / did the thing.Thank You kaushalmodi


#5

thank you


#6

Another way would be to fix the template files/theme… use absURL or relURL so that things would work whether or not baseURL ends in /.


#7

No, we should recommend to always use the built-in functions and methods when doing URL specific things.

So, relURL or absURL to refererence CSS etc.