nexus-devs/NexusHub

Refactor meta tags

Kaptard opened this issue · 1 comments

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Refactor target

Current behavior

Gotta write all meta tags and their prop names in every single component.


Expected behavior

Should have a function that takes only the content params and autogenerates the meta tags.


Minimal reproduction of the problem

The issue is that there's a lot of repeating yourself with the current structure.
Also given the nature of the content, it would be easy for someone to forget combinations like og:image with itemprop=image. This refactor would allow you to not think about all these tiny things.


Environment

Browser:

  • Chrome (desktop) version:
  • Chrome (Android) version:
  • Chrome (iOS) version:
  • Firefox version:
  • Safari (desktop) version:
  • Safari (iOS) version:
  • IE version:
  • Edge version:

For development issues:

  • Node version:
  • Operating System:

Additional Description