Skip to content

Commit 73116de

Browse files
committed
feat: blog theme dev
1 parent 48f8205 commit 73116de

File tree

8 files changed

+31
-25
lines changed

8 files changed

+31
-25
lines changed

config/module.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
],
3131
'Banner' => [
3232
'enable' => true,
33-
'config' => [
34-
'position' => '[{"k":"home","v":"首页"}]',
35-
],
3633
],
3734
],
3835
];

module/Blog/Core/ModuleServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use ModStart\Core\Dao\ModelUtil;
1010
use ModStart\Layout\Row;
1111
use ModStart\Module\ModuleClassLoader;
12+
use Module\Banner\Biz\BannerPositionBiz;
13+
use Module\Banner\Biz\QuickBannerPositionBiz;
1214
use Module\Blog\Util\BlogCategoryUtil;
1315
use Module\Vendor\Admin\Config\AdminWidgetDashboard;
1416
use Module\Vendor\Admin\Config\AdminWidgetLink;
@@ -88,6 +90,9 @@ public function boot(Dispatcher $events)
8890
HomePageProvider::register(BlogHomePageProvider::class);
8991
SearchBoxProvider::register(BlogSearchBoxProvider::class);
9092
ModuleClassLoader::addClass('MBlog', __DIR__ . '/MBlog.php');
93+
if (class_exists(QuickBannerPositionBiz::class)) {
94+
BannerPositionBiz::register(QuickBannerPositionBiz::make('blogHome', '博客系统首页'));
95+
}
9196
}
9297

9398

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
https://ms-assets.modstart.com/data/image/2021/12/06/48206_zcoy_2257.png
2-
https://ms-assets.modstart.com/data/image/2021/12/06/48206_nrax_4980.png
3-
https://ms-assets.modstart.com/data/image/2021/12/06/48207_43bz_9873.png
1+
![image-20220629104259743](https://ms-assets.modstart.com/data/image/2022/06/29/9781_j70o_3391.png)
2+
3+
![image-20220629104311596](https://ms-assets.modstart.com/data/image/2022/06/29/9793_b1ny_9440.png)
4+
5+
![image-20220629104322413](https://ms-assets.modstart.com/data/image/2022/06/29/9803_ytpo_7344.png)
6+
7+
![image-20220629104331853](https://ms-assets.modstart.com/data/image/2022/06/29/9813_uxhq_4328.png)
8+
9+
![image-20220629104344497](https://ms-assets.modstart.com/data/image/2022/06/29/9826_1epb_3069.png)

module/Blog/Docs/module/preview.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
https://ms-assets.modstart.com/data/image/2021/12/06/48203_dam5_8517.png
2-
https://ms-assets.modstart.com/data/image/2021/12/06/48204_7i1w_5640.png
3-
https://ms-assets.modstart.com/data/image/2021/12/06/48205_lqhk_2646.png
4-
https://ms-assets.modstart.com/data/image/2021/12/06/48205_pwu5_1953.png
1+
![image-20220629104107790](https://ms-assets.modstart.com/data/image/2022/06/29/9671_6ovw_1948.png)
2+
3+
![image-20220629104128831](https://ms-assets.modstart.com/data/image/2022/06/29/9691_5ln2_3704.png)
4+
5+
![image-20220629104220063](https://ms-assets.modstart.com/data/image/2022/06/29/9741_vhb4_1683.png)
6+
7+
![image-20220629104233131](https://ms-assets.modstart.com/data/image/2022/06/29/9754_pbtf_1922.png)

module/Blog/Docs/release.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 2.1.0
2+
3+
- 优化:博客首页轮播位置动态注册(需要后台重新设置博客首页轮播图片)
4+
5+
---
6+
7+
## 2.0.0 提供一个基础的博客系统
8+
9+
- 博客系统全面升级

module/Blog/Docs/release/1.0.0.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

module/Blog/Docs/release/1.1.0.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

module/Blog/View/pc/blog/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="col-md-8 margin-top">
1414

1515
<div class="tw-bg-white tw-p-1 tw-rounded">
16-
{!! \Module\Banner\Render\BannerRender::position('home') !!}
16+
{!! \Module\Banner\Render\BannerRender::position('blogHome') !!}
1717
</div>
1818

1919
<div class="tw-p-6 tw-rounded tw-bg-white margin-top">

0 commit comments

Comments
 (0)