feat: Markdown 正文自动 TOC(锚点+折叠目录)+ 社交账号扩充国内平台(B站/小红书/抖音/视频号/公众号/其他)+ 侧边栏社交展示 + JSON-LD sameAs 全平台聚合 + 首页 h1(SEO 语义)
This commit is contained in:
@@ -72,7 +72,13 @@ class BlogSettings extends Page
|
||||
'social_twitter' => Setting::get('social_twitter', ''),
|
||||
'social_facebook' => Setting::get('social_facebook', ''),
|
||||
'social_zhihu' => Setting::get('social_zhihu', ''),
|
||||
'social_bilibili' => Setting::get('social_bilibili', ''),
|
||||
'social_xiaohongshu' => Setting::get('social_xiaohongshu', ''),
|
||||
'social_douyin' => Setting::get('social_douyin', ''),
|
||||
'social_wechat_channel' => Setting::get('social_wechat_channel', ''),
|
||||
'social_wechat_public' => Setting::get('social_wechat_public', ''),
|
||||
'social_email' => Setting::get('social_email', ''),
|
||||
'social_other' => Setting::get('social_other', []),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -132,11 +138,21 @@ class BlogSettings extends Page
|
||||
->columns(2)
|
||||
->schema([
|
||||
TextInput::make('social_weibo')->label('微博')->url()->placeholder('https://weibo.com/xxx'),
|
||||
TextInput::make('social_zhihu')->label('知乎')->url()->placeholder('https://zhihu.com/people/xxx'),
|
||||
TextInput::make('social_bilibili')->label('哔哩哔哩')->url()->placeholder('https://space.bilibili.com/xxx'),
|
||||
TextInput::make('social_xiaohongshu')->label('小红书')->url()->placeholder('https://xiaohongshu.com/user/profile/xxx'),
|
||||
TextInput::make('social_douyin')->label('抖音')->url()->placeholder('https://www.douyin.com/user/xxx'),
|
||||
TextInput::make('social_wechat_channel')->label('视频号')->url()->placeholder('https://channels.weixin.qq.com/xxx'),
|
||||
TextInput::make('social_wechat_public')->label('微信公众号')->placeholder('公众号名称 / 微信号(无外链时用于展示)'),
|
||||
TextInput::make('social_github')->label('GitHub')->url()->placeholder('https://github.com/xxx'),
|
||||
TextInput::make('social_twitter')->label('Twitter / X')->url()->placeholder('https://x.com/xxx'),
|
||||
TextInput::make('social_facebook')->label('Facebook')->url()->placeholder('https://facebook.com/xxx'),
|
||||
TextInput::make('social_zhihu')->label('知乎')->url()->placeholder('https://zhihu.com/people/xxx'),
|
||||
TextInput::make('social_email')->label('邮箱')->email()->placeholder('contact@example.com'),
|
||||
\Filament\Forms\Components\KeyValue::make('social_other')
|
||||
->label('其他平台')
|
||||
->keyLabel('平台名')
|
||||
->valueLabel('链接 / 名称')
|
||||
->columnSpanFull(),
|
||||
]),
|
||||
Tab::make('维护')
|
||||
->schema([
|
||||
|
||||
Reference in New Issue
Block a user