Multilanguage github.io

I made a multilanguage website using github.io and, for some unknown reason, english version of website is loading fine, but when I try to change language using button on top-right, instead of redirecting me to Hugo Academic CV Theme (which is working fine btw) it redirects to localhost1313/ru.

I tried to solve this issue for some time but I did not find working solution

You pushed your site public folder to your repo.

  1. The public has been created using hugo server that will replace your baseURL with localhost:1313. This is for local testing only.

To create a public dir that can be served, generate it with hugo (without server)

  1. You have a build action, that tries to build a jekyll site. No use of that with a hugo generated site.

You might consider to switch to a hugo workflow.

push your hugo sources (without public folder) and replace your workflow with one using Hugo to generate your site.

see: Host on GitHub Pages | Hugo