Closed (fixed)
Project:
AMP Theme
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
8 Jun 2016 at 20:56 UTC
Updated:
1 Jul 2016 at 16:14 UTC
Jump to comment: Most recent, Most recent file
#2745225: Provide debugging information for AMP metadata added the ability to provide configuration for the necessary metadata to create the JSON needed for Top Stories rich snippets. The JSON output by the AMP theme is now redundant and should be removed so that there aren't two blocks of JSON data.
We should also remove the variable preparation going on in amp.theme currently used in html.html.twig for JSON. This code has been fiddly to work with, particularly the code related to the logo, so this should help reduce potential errors in the theme.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2745227-8-remove-theme-json.patch | 2.74 KB | rainbowarray |
| #3 | 2745227-3-remove-theme-json.patch | 4.72 KB | rainbowarray |
Comments
Comment #2
rainbowarrayComment #3
rainbowarrayThis removes the JSON added in head by the theme as that JSON can now be added by configuring AMP metadata as per #2717641: Add support for 'Top Stories with AMP'.
Comment #4
rainbowarrayComment #6
rainbowarrayComment #7
rainbowarrayWith #2734533: AMP metadata for Top Stories support. going in, we need to do this for D7 as well.
Comment #8
rainbowarrayHere's the D7 patch.
Comment #10
rainbowarray