You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior: When I navigate to root (e.g. localhost:3000/#/ ), I should see a title Home - Documentation
Actual behavior: When I navigate to root, I see title - Documentation
What's even worse is that even when tried making a workaround with defining a script in home page's markdown to change a title when document finished loading it didn't work on initial load. It works when i navigate somewhere else and when navigate to home through sidebar, but if I refresh home, when the title is once again - Documentation
From this I can see 2 possible future fixes:
Fix titles for root pages
Don't add the dash to the title if left side is empty, so that, if going back to my example, instead of - Documentation, it would Documentation at least.
I will probably try to solve this within docsify and make PR if I succeed, but to be fully honest, I'm not much of a JS developer.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not sure if I'm misunderstanding something or perhaps there's actual issue with this.
Default behavior for title generation as noticed is this -
{.md's first headline} - {title defined in index.html}
Scenario: I don't use a cover page, my home page is
README.md
at root of served directory. In my index.html I define a title with valueDocumentation
.Home's README.md:
My Sidebar:
Docsify config:
Expected behavior: When I navigate to root (e.g. localhost:3000/#/ ), I should see a title
Home - Documentation
Actual behavior: When I navigate to root, I see title
- Documentation
What's even worse is that even when tried making a workaround with defining a script in home page's markdown to change a title when document finished loading it didn't work on initial load. It works when i navigate somewhere else and when navigate to home through sidebar, but if I refresh home, when the title is once again
- Documentation
From this I can see 2 possible future fixes:
- Documentation
, it wouldDocumentation
at least.I will probably try to solve this within docsify and make PR if I succeed, but to be fully honest, I'm not much of a JS developer.
The text was updated successfully, but these errors were encountered: