Code Monkey home page Code Monkey logo

Comments (4)

williamcanin avatar williamcanin commented on September 13, 2024

@rockkingjy Is it not stylized (CSS)? You have to see the value of the "baseurl" and "url" variables in the _config.yml file. You have to put the corresponding values of your personal page on the web. This is being pre-explained here: https://github.com/williamcanin/typing-jekyll-template/#deploy

Thanks for your cooperation.

from typing-jekyll-template.

rockkingjy avatar rockkingjy commented on September 13, 2024

Thanks for your response. I really like this template, but I'm a totally starter on this. I've done the following, problems still not solved:

  1. Fork your template to my GitHub repository.
  2. Change the _config.yml file according to the instruction (I'm not quite sure it's correct, I just use the GitHub page, do not have my personal site):
baseurl: "" 
url: "https://rockkingjy.github.io"
  1. It works quite well on my local computer after using the commands:
bundle install
bundle exec jekyll serve
  1. Create an empty gitHub.io repository: https://github.com/rockkingjy/rockkingjy.github.io
  2. Push the _site/ folder created by the local computer to the GitHub.io repository
  3. Check the site created by GitHub page: https://rockkingjy.github.io, and the problems are:
    a. Not the same as on my local computer, lots of features lost.
    b. When I click the hyperlink on the site like "Blog" or "Hello", it jumps to the http://localhost:4000/blog/ and said "Can't connect to the server".

I don't know why for these two problems, could you help me?

from typing-jekyll-template.

williamcanin avatar williamcanin commented on September 13, 2024

@rockkingjy Okay. As Jack the Ripper said, let's go by parts. haha xD

  1. When I inspected the source code of your "rockkingjy.github.io" repository, I noticed a URL error. It is pointing to "http: // localhost: 4000". See the print I took: https://i.imgur.com/15qzasL.png

  2. And why did this happen? A: Because you performed deploy without using the "bundle exec jekyll b" command. Every time you deploy (_site), you must use the "bundle exec jekyll b" command to compile the project. The command "bundle exec jekyll serve" or "bundle exec jekyll s", is only to elevate the server locally with the URL "http: // localhost: 4000".

[ When you run the "bundle exec jekyll s" command, Jekyll will compile your project with the url "http: // localhost: 4000" to raise the local Jekyll server. Already, with the "bundle exec jekyll b" command, Jekyll will compile your project with the url of the _config.yml file, and you are ready to deploy your site.]

That was the error.

  1. [Resolve problem] - Compile the project again with the "bundle exec jekyll b" command and deploy the "_site" folder in the "master" branch of your "rockkingjy.github.io".

I hope this is the solution, ask anything. Thank you.

from typing-jekyll-template.

rockkingjy avatar rockkingjy commented on September 13, 2024

@williamcanin Ahaaaa, that's working! Really thanks for your help~ The feeling is really good to have it running! And the template is beautiful! Thank you again!

from typing-jekyll-template.

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.