Set Page Title and Description Per Page in React Website Using Helmet
HTML-код
- Опубликовано: 5 сен 2024
- In this video series, I work on my new personal website built using React.
Website: www.celikk.me
GitHub: github.com/cel...
Playlist: • Personal Website with ...
Twitch: / celikkoseoglu
In this video, we explore a library called Helmet. This library allows you to set page metadata per page. You can change page title, description and possibly social media share images. This is something I'll be exploring in my next video! - Наука
@4:00 They named it helmet because it's for the tag. Helmet cover heads...
the react component in markdown was also very helpfull !!! THX 10/10 Points
Thanks for this
in my project meta tags are not getting changed in source code of each page why?
even i used your method stil did'nt worked
You are using react-helmet for set meta tags that display the page element but in page view source it can't be set. So any search engine which not scraping the JavaScript will not find the metatag.
Please see this and find some solution.
Actually, I've already solved this problem here: ruclips.net/video/idq0UMulc6g/видео.html
@@celikkoseoglu Okk Thanks, Waiting for your solution.
Do you also link a new css link inside the helmet too? or does all your css for all pages only happen in index.css?
All your images are stored locally right? There isn't a url pointer to a database like firebase is there? I assume that wouldn't work?
I never see someone storing the page strings in json files. That's a good idea.
For example, if sometime in the future we want to add a second language, that is a way to do it, right?
Or there is a better way to do it?
This is a clean solution for my use case because I don't have a backend to ask for strings.
If I was to add a second language, I would probably have a string-locator logic that would give me the correct string for the specific language. I haven't fully thought about this yet. It's actually a pretty good idea. I might look into it. Maybe I'll discover a better solution along the way.
Do you use kde plasma?
tf