Closed Kocal closed 4 years ago
Nice! I'll review it ASAP.
Why not adding
publisher
property to author, too?
I wasn't really sure of how to use the microdata properly, but sure we can add it.
Is
dateModified
really required since we're currently only displaying published date?
You're right, it's not displayed but I thought it can be intersting to still have the info somewhere. Maybe we should display it?
IMO, we can provide an option whether to display last modified date, but it'll be another PR or issue, so leave dateModified
to it.
I've added "publisher" micro-data:
Cool, could you remove dateModified
for now, and I'll merge it.
Done
Summary
This PR adds some microdatas on post and posts list. Microdatas are useful for search engines/web crawlers and can improve your position on search engines or the user experience.
Here are some screenshots on the Google's Structured data Testing tool:
Homepage (before):![Capture d’écran de 2020-02-04 21-08-12](https://user-images.githubusercontent.com/2103975/73785387-74986680-4797-11ea-9c10-77f3e9607afd.png)
Homepage (after):![Capture d’écran de 2020-02-04 21-07-06](https://user-images.githubusercontent.com/2103975/73785393-78c48400-4797-11ea-8cae-da5174ec4418.png)
Post (before):![Capture d’écran de 2020-02-04 21-39-49](https://user-images.githubusercontent.com/2103975/73785406-7e21ce80-4797-11ea-9861-5e6dd2900c72.png)
Post (after):![Capture d’écran de 2020-02-04 21-35-31](https://user-images.githubusercontent.com/2103975/73785415-82e68280-4797-11ea-9c16-0eae2eeefe4c.png)
What kind of change does this PR introduce? (check at least one)
If changing the UI of default theme, please provide the before/after screenshot:
No UI changes.
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx]
, where "xxx" is the issue number)You have tested in the following browsers: (Providing a detailed version will be better.)
If adding a new feature, the PR's description includes:
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information:
Nope.