-
Notifications
You must be signed in to change notification settings - Fork 574
Update title and descriptions for manual pages #1372
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
Update title and descriptions for manual pages #1372
Conversation
This makes use of the new information that Phd will display once php/phd#201 is merged. It changes the title on the home page also to just "PHP" (removing the `: Hypertext Preprocessor` part). It also changes the meta information for manual pages, which is used for social media cards.
include/layout.inc
Outdated
$meta_description = "PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world."; | ||
$meta_description = $config['description'] ?? $title; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't seem right. We should not use the title if there is no description given.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would you like to see instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old generic description ("PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.") would work (or just nothing).
🚀 Regression report for commit 3dbf1bf is at https://web-php-regression-report-pr-1372.preview.thephp.foundation |
🚀 Preview for commit 3dbf1bf can be found at https://web-php-pr-1372.preview.thephp.foundation |
This makes use of the new information that Phd will display once php/phd#201 is merged.
It changes the title on the home page also to just "PHP" (removing the
: Hypertext Preprocessor
part).It also changes the meta information for manual pages, which is used for social media cards.