Github blog image upload fail (Markdown path) - github

I am making a blog with Github. I forked from someone else's and only edited the words. So I don't really have basic knowledge of web programming.
The problem is the path doesn't go to the right page when I attach the picture. It kept shows an error.
I figured out why the error shows up, but I can't find how to solve this problem.
Path (which should be worked):
https://github.com/babydoyaji/babydoyaji.github.io/blob/master/assets/img/TIL210105/0105_1.png
What I put:
![testing](../assets/img/TIL210105/0105_1.png)
I also put this. But this doesn't work too.
![testing](.../assets/img/TIL210105/0105_1.png)
This page shows up. (/blog path should not exist):
https://github.com/babydoyaji/babydoyaji.github.io/blob/master/blog/assets/img/TIL210105/0105_1.png
The result :
result
I can't find how to take off that /blog from the path.
The one solution I am thinking is moving the img folder inside the blog folder, but I don't want to put folders like that.
If anyone knows how to remove the /blog from the path with markdown code, please help me.
Thank you.

Related

Git Hub Pages not Deploying. (404)

I am new to web-development. I am trying to just start off by deploying my 1 page website just to sort of see how it works.
I followed all of the steps that I saw on a tutorial and I just get a 404. (file not found) https://juteland.github.io
Here is my repo. https://github.com/Juteland/juteland.github.io
If someone is good at this and can tell me what I am doing wrong that would be great!
Thanks!
Try this:
https://juteland.github.io/Documents/WebDev%20/IsomodularWebsite/
You have page on above link. You don't have index.html page on that directory. Hence it is showing 404 not found.
There are two directories inside juteland.github.io as per your github link:
Desktop/IsomodularWebsite
Documents/WebDev /IsomodularWebsite
As I am able to see both the directories contain the same number of files and both are duplicates.
Try the following steps:
You delete one of them. (Let's say you delete Documents/WebDev /IsomodularWebsite)
Move all files of Desktop/IsomodularWebsite inside juteland.github.io directly and then delete Desktop/IsomodularWebsite also.
It is really 404, because you don't have index.html or index.htm or something that is specified as the entry point as a webpage in your repository root.
Your webpage is there, https://juteland.github.io/Documents/WebDev%20/IsomodularWebsite, with "strange" long URL.
Why do you put your web page inside such a long and meaningless folders?

Github pages doesn't display any content

I'm new to Github and this is the second time I'm trying to upload a project and I get the same result; The page seems to show the readme file and nothing else. I have tried using the master as well as gh-pages branches and nothing changed. I'm really not sure what I'm doing wrong and would be grateful if I get my first answer in Stackoverflow here. repo: https://github.com/Syknapse/RGB-Color-Changing-Game
Maybe it's because the outer directory which your initial URL refers to contains only the Readme.md.Your HTML file to be displayed is in the folder RGB Game files.I would suggest you to either bring your static files in the outermost directory or change the name of your directory into something url friendly(read not containing spaces) and then enter the 'URL/filename'.

Jekyll site attempting to download 'Posts' page instead of rendering it when link is clicked (deployed at Github)

Folks, help is needed and MUCH appreciated with a fuzzy behaviour of Jekyll site deployed to Github.
The site works perfectly when putting it up and using it in the local machine (through 'jekyll serve'). The surprise came up upon deployment to Github, the HTML 'posts.html' page created to show the post list does not get rendered at all. The rest of the site is up and running fine, but once the link is clicked to reach the mentioned page the browser is trying to DOWNLOAD the file, instead of rendering.
If you need to have a peek at the code:
https://github.com/zekdeluca/zekdeluca.github.io
And the site can be seen at:
http://zekdeluca.github.io/
Thanks in advance!
It has to do with the permalink and how the extension-less urls are working. If you add a trailing slash to your url it will work. If you are trying to do it without the trailing slash, I was under the impression that what you did would work on GH.
Something like permalink: /my-page/ will work and it creates a folder called my-page with an index.html file in it. The url will show as /my-page/ without the index.html - pretty except the trailing slash.
If you do permalink: /my-page it should be making a file my-page.html, but in your case it seemed to have made just my-page with no extension, which is then being served as a file by github and it doesn't seem to know what it is so it is downloading it instead of serving it.
There seems to be a lot of conflicting info on this, I think the behavior has changed recently, and maybe the version GH is using is able to output a file with no extension? I did not think that was the case.
more reading:
http://overengineer.net/pretty-extensionless-urls-in-github-pages-using-jekyll/
Jekyll extension-less permalinks with markdown

cannot find image of webite header in joomla

Am just beginning with joomla on a site that is already existing and was previously managed by someone else who is not available at the moment. I am trying to troubleshoot a problem why the website is displaying the header differently in different PCs but I am not being able to find the image of that header file. I tried to look for it under "site > media" but cannot find the image among the images in that area. I also tried to look for the path to the image through the template css and found this path ../images/logo.png which I believe must be the path to the header image but I honestly don't really know which path ../images/logo.png is but assuming it is the one under "media" then I still cannot find the image. Could you give me a clue on where the header image files could be found cause I've actually still failed? Or, could you make me understand this path ../images/logo.png or how to find an image on a joomla admin interface like say "logo.png". In fact I discover that on looking at the CSS for the template, the image paths found in it are not found in "Media"? Is there another path for the images in the template and how do I access them? I cannot FTP my host at the moment to view the physical files due to the long procedure needed so am hoping that there is a way to find it. I only have joomla admin access and nothing like Cpanel as yet. The joomla version of the site is 1.5.22 which I know is an old one but I plan to do first things first. Hope I've given enough infor.
Try using FireBug, or Chrome debugger - (press F12) and check "Click an element in the page to inspect" to see where the specific image is located exactly.

Linking using relative path on Github README.md

I am trying to create links in my README.md that link to example code using a relative path, as opposed to the absolute path I am using now. For example, in the markdown file, if I use this:
[someLabel](https://github.com/username/repoName/somePathTo/myExampleCode)
It works no problem. But I would like to link it up using something like this:
[someLabel](username/repoName/somePathTo/myExampleCode)
This does not link up, as it gives me the ol' 404 not found error. Is there a way to link my examples on Github to my README using a relative path?
They seem to have changed this since Aug 8 '12, so now all I had to do to reference my pdf file inside the Documentation folder (which is in my project's root) is this:
[file.pdf](Documentation/file.pdf)
So, no need to add blog/master part anymore. Hope it helps new people browsing this question.
Try leaving off the username/ part. A relative link to repoName/blob/master/whatever on a page at /username/repoName should take you to /username/repoName/blob/master/whatever, which is what you want, I think.
Here is a nuance. A leading slash changes the meaning of a link.
[someLabel](/repository/relative/link.txt)
[someLabel](directory/relative/link.txt)
I recently found out that the way you can use relative path in README.md is:
[file.pdf](/Documentation/file.pdf)
where Documentation is a folder at the root of my repository
I have search in google about your question and found your question and after reading all answers, I found another way we can add relative path in README.md file by this way,
[someLabel](./somePathTo/myExampleCode)
Add the leading ./ character when the path is pointing to a parent folder.
It will not give '404 not found error' in Github.