SEO and social images
Titles, descriptions, Open Graph images, sitemaps and structured data for your site.
Every template page has a unique title, a meta description, Open Graph and Twitter tags, a theme colour and a favicon. Update them with your own wording before you launch.
Titles and descriptions#
- HTML: each page's
<head>has a<title>,<meta name="description">andog:tags. Edit them in every file. - Next.js: each
page.tsxexportsmetadata(or uses the template's small metadata helper). Shared values such as the site name live insrc/app/layout.tsxor a site config file the template's guide points to.
Write titles under about 60 characters and descriptions under about 160, specific to each page.
Social images#
The sharing image is og-image.png, 1200×630 pixels, because most social networks don't display SVG. Its
editable source is og-image.svg: change it in any vector editor, then export a PNG at 1200×630.
Social networks need an absolute URL for the image:
- HTML: change every
og:imagevalue fromassets/img/og-image.pngto your full domain, for examplehttps://example.com/assets/img/og-image.png. - Next.js: set your domain with the environment variable the template uses (
SITE_URLorNEXT_PUBLIC_SITE_URL; see its guide) when you build. It feedsmetadataBase, which turns relative image paths into absolute URLs.
Test a page with the sharing debugger of the network you care about after deploying.
Sitemap and robots#
Search engines find pages faster with a sitemap:
- HTML: create
sitemap.xmlin the site root listing each page's full URL, and arobots.txtwithSitemap: https://example.com/sitemap.xml. - Next.js: add
src/app/sitemap.tsandsrc/app/robots.ts; Next.js generates both files at build time.
Structured data#
Some templates include JSON-LD (for example a restaurant, event or article). Update the names, addresses and dates in it, or remove it if it doesn't apply. Check it with a rich results testing tool.
Performance#
The templates load no JavaScript frameworks in the HTML versions, use SVG art and lazy-load images below the
fold. When you add photos, export them at the size they're shown, prefer WebP or AVIF, and keep loading="lazy"
on images that aren't visible on first load.