回复#22 @lincanbin :
就在贴出来的那段里,是https://github.com/flarum/core/issues/189
------
Flarum renders very basic versions of the discussion list and discussions (within <noscript> tags), which are going to be specifically optimised for search engines. This all takes place in Flarum\Forum\IndexAction and DiscussionAction, which extend Support\ClientAction and use Flarum\Support\ClientView. The actions get data from the Flarum's API and pass it onto content views (discussion.blade.php and index.blade.php). I'm happy to explain more if need be because it can get pretty confusing.
Put simply, the code is a mess. It needs to be rethought and refactored. A few thoughts:
We probably want to use or build some kind of library that makes it easier to work with a JSON-API document payload.
Similarly, we probably want to use or build some kind of library that will help generate URLs/query strings/etc.
Only after doing this will we be able to effectively optimise the SEO content and do the following:
Add tags
Add description tags
Think about other stuff like schema.org
登录后方可回帖
不是敏感问题,应该是你这个问题之前很多人问过,你又不去搜索有没有类似问题,就被他们关闭了。