DEV Community

Ajay Dhangar
Ajay Dhangar

Posted on • Edited on

Web hosting issues || GitHub Page is not showing up on the website?

I have created one repository on GitHub and hosted it with the help of the GitHub page. My issue is that if I have put all code (CSS and JavaScript code) in HTML, then it works, but if I have created another folder of CSS and JavaScript and saved the path in HTML, then it's not working. I don't understand why.

For example, you create one simple hello world website and try code from this condition.

Repository link:

GitHub logo ajay-dhangar / ajay-dhangar.github.io

๐Ÿ‘‹ Hi there! Welcome to my portfolio repo! I'm Ajay Dhangar, a software engineer and tech enthusiast passionate about web development, open source, and building cool stuff. Currently working at a startup and mentoring at CodeHarborHub.

image

Overview

Welcome to my portfolio website! I'm Ajay, an aspiring Full Stack Developer passionate about building clean, efficient, scalable solutions. This site showcases my skills, projects, and experiences, all crafted using modern technologies like React.js, TypeScript (TSX), MDX, and Docusaurus.

About Me

Seeking Full Stack Development Opportunities

Hi! I'm Ajay, a software engineer specializing in the MERN stack (MongoDB, Express.js, React.js, Node.js). I thrive on solving complex problems and turning ideas into real-world solutions. My approach is driven by curiosity and collaboration, and I always aim to write clean, maintainable, and efficient code.

Technologies Used

This portfolio website was built using the following technologies:

  • React.js: A JavaScript library for building user interfaces.
  • TypeScript (TSX): A typed superset of JavaScript that adds static types to your code, helping you catch errors early.
  • MDX: A format that lets you seamlessly write JSX in your Markdown documents.
  • Docusaurus: Aโ€ฆ

Website link:

Hello from Ajay Dhangar | Ajay Dhangar

Welcome to my portfolio website. I'm Ajay Dhangar, a passionate web developer and designer. Explore my projects, skills, and certifications.

favicon ajay-dhangar.github.io

Top comments (3)

Collapse
 
cicirello profile image
Info Comment hidden by post author - thread only accessible via permalink
Vincent A. Cicirello • Edited

The URL to that site is ajay-dhangar.github.io/Aj-Zero-Cod..., so all of your paths that start with a / are based on the root of your GitHub Pages URL, ajay-dhangar.github.io/ rather than what you intend as the root of that site.

Collapse
 
aneshodza profile image
anes

I believe it is because your paths are specified as /path/to/file. That goes our form root. GitHub Pages may have another root path than you locally, so you should change the paths into ./path/to/file. Hope that helps!

Collapse
 
ajaydhangar49 profile image
Ajay Dhangar • Edited

Thanks for helping me.
I have understanded ./folder/subfolder/file OR ./file this is right path.
code is 100% work.

Some comments have been hidden by the post's author - find out more