Jekyll blog published on github pages with project url - jekyll

I have created a default jekyll blog and published it to this repo.
The problem is that my blog is hosted on https://deivyd321.github.io/deivydas.github.io/
but not on https://deivyd321.github.io
How can I fix this?

Try setting the url and baseurl in the _config.yml file like so:
url: 'https://deivyd321.github.io'
baseurl: ''

Related

Github Pages and Jekyll permalinks going to different paths

I have a site running locally with Jekyll and deployed to GitHub Pages without any issues.
The issue I have is with GitHub pages and local permalinks.
https://username.github.io/my-repositary
and localhost is going to the root
http://localhost:4000/
So adding a page About in the root and linking to ends up looking like this
https://username.github.io/about
http://localhost:4000/about
Rather than the desired outcome
https://username.github.io/my-repositary/about
http://localhost:4000/about
Jekyll allows you to specify a subpath for the page you are generating via the baseurl option in the _config.yml file. In this case, yours should add this line to it:
baseurl: /my-repositary

Installing Jekyll to a live HTML website

I am trying to deploy Jekyll, I can do so successfully when deploying it as a new website. I want to deploy it to a subfolder named Blog '/mysite/Blog'. I understand that localhost:4000 initializes jekyll to deploy, but how does this work when i want to link to it from the main site '/mysite/blog/'. This results in just the site directory showing as shown:
I am having trouble finding documentation targeting this specific problem. I dont want to deploy this to the live site unless im 100% sure
I understand that localhost:4000 initializes jekyll to deploy
No, it doesn't.
That's the default URL of the development server… which you use for development, not deployment.
See the basic usage instructions:
$ jekyll build
# => The current folder will be generated into ./_site
You have static files. Copy them to your live server as you would any other static files.
You just have to set baseurl in _config.yml :
baseurl: /blog
Verify that resources are called with {{ site.baseurl }}{{ page.url }} or {{ site.baseurl }}/path/to/asset.js/css/jpg.
During development (jekyll serve) you will reach your site at localhost:4000/blog/ and you can deploy this code in you site/blog folder.

Can not find post file in github by using jekyll

This is my github pages . I have already create gh-pages brench.
I want to create markdown file and use jekyll to convert it to .html file.
It can be successfully shown on my localhost.
(auto-generate _site and .html pages)
But I upload the whole directory to github .
The index file can be loaded , but post file cannot.
(click the post link,it show 404 error page.)
What happened to this ?
This is my jekyll github link:
https://github.com/larrywhy/jekylldemo/blob/gh-pages/index.html
This is my pages:
http://larrywhy.github.io/jekylldemo/
At _config.yml file, change the baseurl from "/jekyll_demo" to "/jekylldemo".
You misspelled.

Why my jekyll blog on github not work?

http://chenge.github.io, I can see the index page, show 'Hi'. But after I modified the page with 'Hi 3', it did not updated.
repo at: https://github.com/chenge/chenge.github.io
Thanks for help
Your Jekyll blog must be at the root of your repository, not in a blog folder.
Edit :
If you want to store Jekyll files in blog, your have to move your _config.yml at the root of your repository and change it like this :
source: "blog/"
baseurl: ""
Edit 2 :
I just saw that you cannot configure the source folder on github pages.

Use Hugo to render html files

I am using Hugo http://hugo.spf13.com/overview/introduction to render a folder with html/css/js files as localhost in my laptop.
I have html files in /content and all js/css/img files in /static folder
This is content in config.toml
baseurl = "http://localhost"
contentdir = "content"
languageCode = "en-us"
title = "my new hugo site"
I did hugo server and it rendered /public folder just fine. But all .html files now turning into .xml files and I cannot open them in browser like http://localhost:1313/index.html or so.
What did I do wrong?
Did you setup a theme yet? Without a theme, Hugo will render files as XML, if you read the documentation on themes, that should give you what you need.
First you have to clone themes from github.com/spf13/hugoThemes
In my case I did'nt have git install in my test machine here are the things that I did:
1) Download theme from github.com/spf13/hugoThemes
2) Extract theme to /path/themes
3) Run hugo --theme='themename'