Skip to content
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

Fixed published time and modified time for Structured data #12085

Merged
merged 3 commits into from
Aug 17, 2020
Merged

Fixed published time and modified time for Structured data #12085

merged 3 commits into from
Aug 17, 2020

Conversation

roshandash411
Copy link
Contributor

@roshandash411 roshandash411 commented Jul 28, 2020

closes #12059
Published Time and Modified Time were not populating for 'page' context because it is an extension of 'post' and hence there was no context 'page'. Fixed it by handling this scenario for published time and modified time

…red data

closes #12059
Published Time and Modified Time were not populating for 'page' context because it is an extension of 'post' and hence there was no context 'page'. Fixed it by handling this scenario for published time and modified time
…red data

closes #12059
Published Time and Modified Time were not populating for 'page' context because it is an extension of 'post' and hence there was no context 'page'. Fixed it by using the common contextObject, and handled the scenario for the legacy post in page for contextObject. Should also fix some other missing parameters.
Copy link
Member

@ErisDS ErisDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roshandash411 thank you for this PR!
I wasn't expecting the getContextObject method to need adjusting, and I can't see a case where the extra if is needed.

If we can clean this up, this PR should be good to merge!

core/frontend/meta/context_object.js Outdated Show resolved Hide resolved
@roshandash411
Copy link
Contributor Author

@ErisDS : Yeah you are right, my bad I had overlooked it. I have updated the PR with the fix.

@ErisDS ErisDS merged commit c81d11b into TryGhost:master Aug 17, 2020
daniellockyer pushed a commit that referenced this pull request Aug 18, 2020
closes #12059

- Published Time and Modified Time were not populating for 'page' context because it is an extension of 'post' and hence there was no context 'page'. 
- Fixed it by using the common contextObject & `getContextObject` utility. 
- Should also fix some other missing parameters.
daniellockyer added a commit that referenced this pull request Aug 18, 2020
v3.29.2

* tag '3.29.2':
  v3.29.2
  Updated Ghost-Admin to v3.29.2
  🐛 Fixed failing migration from <2.34 to 3.29
  🐛 Fixed published time and modified time for structured data (#12085)
  🐛 Fixed meta data when using tag data in collection (#12137)
  Updated Stripe JS to load async in head
  🐛 Removed [http://url/] output in member email preview text
  🐛 Fixed apostrophes not displaying correctly in Outlook for member emails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Article structured data is invalid on pages
2 participants