-
-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEO optimizations #173
Comments
I can add some of these tags, but the most important one, Obvi since this isn't ever going to have ads or be funded by them, SEO is less important to me than it would be otherwise. |
But SEO is not about that. SEO stands for Search Engine Optimization and it is only needed so that search engines (DuckDuckGo, Bing, etc.) can find and crawl a website correctly and rank it accordingly. |
Also consider that a user/community needs to be able to prevent their content from being shown in search engines. Reddit has this functionality in account settings. |
I'm def willing to do it, I just need some expertise from other react routing experts or good articles on the best way to do it. |
dup of #155 |
How? They are 100% not related. The fact that because of JS, source code of pages can't be indexed by crawlers is just one issue/optimization for SEO. But there are many more, like creating a robots.txt file, xml file, etc.. there are many SEO optimizations that a website can make use of. |
PRs welcome. |
As far as I know of search engine bots have problems when crawling client-side generated code. So if the server is just sending a plain JS file, crawlers will have problems with it (they will not be able to crawl title, description, etc...) this is the reason why there are applications which do server rendering of React components or why yew is a thing (by recreating a virtual dom like React has already done). |
I think google can crawl some js sites now, a part of it tho also is the dev instance is using hash routing, IE |
Yes, an isomorphic app would solve this particular problem but with a Rust back-end how are you going to do that? The first principle of the isomorphic app is to be able to call |
https://infernojs.org/docs/guides/isomorphic The renderToString would be local, from a node server, express, to the locally running rust instance, and would pull all the data before sending to the client. |
I've recently added the browserrouter which might help with this. Does anyone know of any good SEO tester? |
The audits tab of the Chrome console is pretty good. |
I'll close this but any new SEO related specific things can be re-opened. |
Fix/emoji suggestions Closes LemmyNet#152, LemmyNet#166, LemmyNet#168, and LemmyNet#173 See merge request chapo-sandbox/lemmy!311
…ary` (ref #1220)' (#173) from apub-post-name into main Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/173
As of right now, we don't even have meta descriptions:
the source code for this page https://dev.lemmy.ml/#/post/28664 shows:
Crawlers/bots need more info in order to index pages correctly.
We'd need to find the SEO best practices and apply them.
We could use as a guide this: https://backlinko.com/on-page-seo (this is a general purpose article, not everything applies to lemmy, but most of it I'd say)
The text was updated successfully, but these errors were encountered: