queen-raae / prune-your-follows

15 stars 1 forks source link

Add social image to all pages #76

Open raae opened 1 year ago

raae commented 1 year ago

Since this is a fairly simple app, all pages may have the same image so I would make a reusable head component in src/domains/common/site-head.js. The only difference from page to page would be the title, examples:

// src/pages/app/index.js
<title>{meta?.title} - app</title>

// src/pages/404.js
<title>{meta?.title} - 404</title>

// src/pages/index.js
<title>{meta?.title}</title>

You'll need to make sure the component may accept a prop for the "app" and "404" text, and make sure to only add the " - " when needed.

DONE: