Giter Site home page Giter Site logo

Comments (10)

hugo-sid avatar hugo-sid commented on May 22, 2024 1

Thanks for reporting this issue @Rayjun0525 . It has been fixed now.

can't we change it so that we can specify the initial home path as a variable

Yes, we can do that.

Can you update your theme and then set the baseURL in config.toml file to your blog/website URL?

from hugo-blog-awesome.

hugo-sid avatar hugo-sid commented on May 22, 2024

Hello :)

There is a problem of going to the top of the git page when you press the home button. I wonder if this is my git page setting problem or if it can be solved by setting it in the config.toml file.

Could you please explain what you meant by 'git page' ?

from hugo-blog-awesome.

Rayjun0525 avatar Rayjun0525 commented on May 22, 2024

I am writing a hugoblog through the page of GitHub.
My url is like this
https://gitId.github.io/blogTitle/

However, clicking the Home button on the main page will switch to page 404 of github.
The same problem occurs when you click 'See all posts' on the main page that is set to go to /posts/.

I resolved by changing the link address of the third line of the file "hugo-blog-awesome/layouts/partials/header.html" and the link address of the 20th line of the file "hugo-blog-awesome/layouts/index.html"

But to avoid this problem, can't we change it so that we can specify the initial home path as a variable? I am not familiar with the correction of hugo yet, so I inquired about the issue instead of a commit request.

from hugo-blog-awesome.

Rayjun0525 avatar Rayjun0525 commented on May 22, 2024

It's Fantastic. Thank you for the quick action!

from hugo-blog-awesome.

hugo-sid avatar hugo-sid commented on May 22, 2024

You are welcome @Rayjun0525.

Happy blogging :)

from hugo-blog-awesome.

kusyka911 avatar kusyka911 commented on May 22, 2024

set the baseURL in config.toml

@hugo-sid @Rayjun0525

I want to mention that there is ability to set baseURL variable in build command (hugo -b /kusyka/). Setting baseURL in config file may break site running on dev server (hugo server command). See CLI docs for more options.

from hugo-blog-awesome.

hugo-sid avatar hugo-sid commented on May 22, 2024

Setting baseURL in config file may break site ruining on dev server

@kusyka911, my experience has been quite the opposite of what you mentioned.

I have worked with a ton of Hugo websites but I never experienced this issue. If this issue arises only when we use no-root baseURL, then I have nothing to say. I have not used a non-root baseURL yet.

from hugo-blog-awesome.

young-hnau avatar young-hnau commented on May 22, 2024

Hello, I am having a similar issue where the Home Icon Button is redirecting me to "localhost:1313".

I have double checked that my config file has baseURL set to my blog's domain. Is there something else I should check as well?

from hugo-blog-awesome.

hugo-sid avatar hugo-sid commented on May 22, 2024

Hello, I am having a similar issue where the Home Icon Button is redirecting me to "localhost:1313".

I have double checked that my config file has baseURL set to my blog's domain. Is there something else I should check as well?

Hi @Ritter99.

  • What command are you using to deploy or build your site?
  • What exactly is your baseURL ?

from hugo-blog-awesome.

young-hnau avatar young-hnau commented on May 22, 2024

@hugo-sid, I am using the "server" command to run Hugo and my baseURL = "https://blog.example.com/"

from hugo-blog-awesome.

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.