diff --git a/app/common/tools/PostBlock.php b/app/common/tools/PostBlock.php new file mode 100644 index 0000000..283a2dc --- /dev/null +++ b/app/common/tools/PostBlock.php @@ -0,0 +1,16 @@ + $model_post + ]); + } +} diff --git a/app/common/tools/post_block/copyright.html b/app/common/tools/post_block/copyright.html new file mode 100644 index 0000000..d60fdd8 --- /dev/null +++ b/app/common/tools/post_block/copyright.html @@ -0,0 +1,14 @@ +
+\ No newline at end of file diff --git a/public/static/css/index.articles.css b/public/static/css/index.articles.css index cb0f0a4..fc1995c 100644 --- a/public/static/css/index.articles.css +++ b/public/static/css/index.articles.css @@ -122,11 +122,10 @@ } .post-item .info .title { - font-size : 20px; + font-size : 24px; line-height : 1.3; margin-bottom : 4px; - font-weight : 700; - max-height : 52px; + /* max-height : 52px; */ display : -webkit-box; -webkit-line-clamp: 2; overflow : hidden; @@ -220,7 +219,7 @@ } a.post-item:visited { - color: #bbb; + color: #333; } /* @@ -296,7 +295,8 @@ a.post-item:visited { } .copyright { - margin-top: 15px; + margin-top : 15px; + padding-top: 20px; } .index-poster { diff --git a/view/admin/post/edit_content.html b/view/admin/post/edit_content.html index 3fa4a11..5d2277d 100644 --- a/view/admin/post/edit_content.html +++ b/view/admin/post/edit_content.html @@ -51,6 +51,10 @@ box-shadow: 0 2px 10px rgb(0 0 0 / 12%); } + #editor-container li { + list-style: inherit; + } + #title-container { padding: 20px 0; border-bottom: 1px solid #e8e8e8; diff --git a/view/admin/post/output.html b/view/admin/post/output.html index c0a0868..caca165 100644 --- a/view/admin/post/output.html +++ b/view/admin/post/output.html @@ -37,6 +37,12 @@ display: block; margin-bottom: 15px; } + + .article-body.show-copyright-inner .copyright-inner { + background-color: #e8e8e8; + color: #333; + font-size: 12px; + } @@ -46,7 +52,11 @@+ 原文标题:{$post->title} +
++ 原文地址:{$post->read_url} +
++ 原文平台:{:get_system_config('site_name')} +
++ 版权声明:{:get_system_config('post_copyright')} +
+