flarum 有了解么?能否加个类似的标签功能? Page2
- 登录后方可回帖
回复#20 @lincanbin :
问之前特意搜索过的,没有相关话题才问的
回复#21 @大孟 :
从他们的回复来看,显然应该是有相关话题的,大概在GitHub上有?
回复#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
回复#23 @betw :
Put simply, the code is a mess. It needs to be rethought and refactored.
里面这么说倒是没错,但是Flarum如果真要为SEO而refactored,那注定是个漫长而痛苦的过程。
回复#24 @lincanbin :
Flarum 对 Google 的 SEO 做的还不错,只是百度太另类
回复#25 @justjavac :
不对啊,百度那个才是主流。