Skip to content

Instantly share code, notes, and snippets.

@joshcp
Last active September 24, 2018 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshcp/6ba794e8d660c373fff6fb17a0b64dda to your computer and use it in GitHub Desktop.
Save joshcp/6ba794e8d660c373fff6fb17a0b64dda to your computer and use it in GitHub Desktop.
proposed meta, link, and schema tags for import on all optimize projects
{{[rel="amphtml"]}}
{{[rel="manifest"]}}
{{[rel*="icon"]}}
{{[rel="canonical"]}}
{{[rel="alternate"]}}
{{[rel="publisher"]}}
{{meta:not([name="viewport"])}}
{{[type="application/ld+json"]}}
@joshcp
Copy link
Author

joshcp commented Sep 20, 2018

This is intended to target:

  • All the meta tags except viewport.
  • Link tags not related to CSS and JS.
  • Schema script tags.

@joshcp
Copy link
Author

joshcp commented Sep 20, 2018

One thought - we should probably import the lang attribute on the HTML element.

@joshcp
Copy link
Author

joshcp commented Sep 24, 2018

Re-ordered to place amphtml and other link tags before meta, because I've observed that meta descriptions occasionally contain characters that break/close the head tag on our client websites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment