Code Monkey home page Code Monkey logo

Comments (7)

yous avatar yous commented on September 7, 2024

I think it's because you have baseurl: "/whiteglass" in your _config.yml. If you want to use armsp.github.io as home of your blog, set baseurl: "". You may want to use armsp.github.io/blog as home, then set baseurl: "/blog".

from whiteglass.

armsp avatar armsp commented on September 7, 2024

I am not using it as a personal site, just a project page. So by default GitHub gives the URL as https://armsp.github.io/<repository-name>

In this case should I keep baseurl: "/<repository-name>" or baseurl: ""
EDIT
I tried with baseurl: "", the css didn't work.
If I do baseurl: "/<repository-name>" then the css path becomes <link rel="stylesheet" href="/<repository-name>/assets/main.css"> which is again incorrect since I am pushing the _site folder, so there is no folder called repository-name.

If you want to have a look then you can look here - https://github.com/armsp/testing-whiteglass

I am just testing it out, so its not complete neither fully edited, but its live so that I can show you that css fails - https://armsp.github.io/testing-whiteglass/

from whiteglass.

yous avatar yous commented on September 7, 2024

Please try changing _config.yml as the following:

baseurl: "/testing-whiteglass"
url: "https://armsp.github.io"

It's correct even if you don't have the folder called repository-name, as it's URL. <url><baseurl> will point the URL of the repository's GitHub Pages (in this case, https://armsp.github.io/testing-whiteglass). index.html will have <url><baseurl>/assets/main.css, and you have assets/main.css under your repository, it will load the CSS correctly.

from whiteglass.

armsp avatar armsp commented on September 7, 2024

It works !! I can't thank you enough.
Just one last question....should this have its own domain, then url: "https://armsp.github.io" will need to be changed to url: "https://abc.com" with baseurl: "", right?

from whiteglass.

yous avatar yous commented on September 7, 2024

Yes, if you want to give abc.com as home, that's right.

from whiteglass.

armsp avatar armsp commented on September 7, 2024

Great, closing this now. Thanks a lot once again!!

from whiteglass.

yous avatar yous commented on September 7, 2024

No problem! Always feel free to open a new issue if you have problems.

from whiteglass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.