htmlgithubjekyllgithub-pageshtml-title

Why my webpage title not same as expected?


Here is my website - Aman Roy

The problem is that from some days the title of my website is showing HOME | aman-roy.github.io

previously it is showing HOME | Aman Roy

Even now, locally it is showing HOME | Aman Roy but not on the GitHub pages.

Codes of my website resides here - GitHub Link to website codes


Solution

  • Your home page does not have the <title> element defined so Jekyll is most likely generating one by itself based on the index.html Jekyll title set and the URL.

    Add the following to your <head> located in your default.html (master/_layouts/default.html)

    <title>{{ page.title }} | {{ site.author }}</title>