feat: 社交账号设置(微博/GitHub/X/Facebook/知乎/邮箱)+ JSON-LD sameAs(Person/Organization/WebSite)+ og:image/og:locale/article 时间 + twitter 完整卡片
This commit is contained in:
@@ -64,6 +64,13 @@ class BlogSettings extends Page
|
||||
// 维护
|
||||
'site_closed' => Setting::get('site_closed', '0'),
|
||||
'site_closed_note' => Setting::get('site_closed_note', ''),
|
||||
// 社交账号
|
||||
'social_weibo' => Setting::get('social_weibo', ''),
|
||||
'social_github' => Setting::get('social_github', ''),
|
||||
'social_twitter' => Setting::get('social_twitter', ''),
|
||||
'social_facebook' => Setting::get('social_facebook', ''),
|
||||
'social_zhihu' => Setting::get('social_zhihu', ''),
|
||||
'social_email' => Setting::get('social_email', ''),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -119,6 +126,16 @@ class BlogSettings extends Page
|
||||
TextInput::make('watermark_size')->label('水印触发尺寸')->placeholder('300x300'),
|
||||
TextInput::make('watermarktrans')->label('水印透明度(%)')->numeric(),
|
||||
]),
|
||||
Tab::make('社交账号')
|
||||
->columns(2)
|
||||
->schema([
|
||||
TextInput::make('social_weibo')->label('微博')->url()->placeholder('https://weibo.com/xxx'),
|
||||
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'),
|
||||
]),
|
||||
Tab::make('维护')
|
||||
->schema([
|
||||
Toggle::make('site_closed')->label('关闭站点')->default(false),
|
||||
|
||||
Reference in New Issue
Block a user