hugo-toha / toha

A Hugo theme for personal portfolio
https://hugo-toha.github.io
MIT License
1.03k stars 586 forks source link

When I push to my repository deployed on gh-pages, the custom domain field goes blank. This has been happening since I updated from Theme version 3 to version 4. #901

Closed javierasping closed 7 months ago

javierasping commented 7 months ago

Good morning!!

Not long ago, I asked for help here because I was unable to automatically update the theme, but you helped me solve it.

However, since then I've noticed that whenever I push to the repository, the custom domain field goes blank. It should have the value www.javiercd.es.

After reading some forums, I was told to place a CNAME file with my domain (www.javiercd.es) in the root directory, but it hasn't had any effect; the field keeps getting "erased."

The correct configuration is as follows:

image

But I don't understand why it goes blank when I push.

I'm not sure if you've experienced something similar or know where I might have made a mistake. Thank you very much in advance.

BernatBC commented 7 months ago

Try placing the CNAME file inside the static directory.

javierasping commented 7 months ago

I have tried it but the same thing keeps happening.

image

After making the change, I pushed again to verify it, and once more, it deleted the custom domain field. And it deploys to the domain javierasping.github.io

image

https://github.com/javierasping/sentinel

BernatBC commented 7 months ago

I've checked your repo, and you need to add:

  - source: static
    target: static

under module imports in config.yaml

javierasping commented 7 months ago

Thank you very much!!! That fixed it. By the way, I've seen your website and it looks really cool!