-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to customize page's 'title' HTML tag value #540
Comments
For everybody - I found a quick way to do it with a little of customization:
In Replace this
with this:
Actually I like how it works, hope the Docsify team will merge it 👍 |
PR prepared #557 |
I wanted to add a suffix to my titles, so I wrote a little plugin: window.$docsify = {
...
plugins: [
titlePlugin({
suffix: ' | My Website'
})
]
}
function titlePlugin(config) {
return (hook, vm) => {
hook.doneEach((content) => {
document.title += config.suffix
});
}
} |
Right now, the 'title' HTML tag value is generated based on sidebar item value
Sometimes I want to make it more custom, e.g. to make it more convenient for SEO, but keep it short in sidebar
Would be great to have this ability
We can do it in the same way as ignoring subheaders works
https://docsify.js.org/#/more-pages?id=ignoring-subheaders
e.g.
# Getting Started {docsify-title=Getting started with iOS machine learning SDK toolkit}
The text was updated successfully, but these errors were encountered: