Hi there! New here. I’m not able to find the index.html to add custom tags inside . What is the best way to add tags?
Hi @didiraja! Welcome to the community
Frontity uses React Helmet internally. This means that you just have to import Head
from frontity
and include all the tags you want. You can check out our docs for a more detailed explanation. Anyway, here you have a quick example:
import { Head } from "frontity";
const Theme = () => (
<Head>
<title>My awesome blog</title>
<meta name="description" content="This blog is just for being awesome" />
<html lang="en" />
<link rel="canonical" href="https://example.com" />
</Head>
);
2 Likes