diff --git a/single.php b/single.php index f86d1b5..ba857ed 100644 --- a/single.php +++ b/single.php @@ -4,7 +4,7 @@ * 文章内容 * @author Seaton Jiang * @license GPL-3.0 License - * @version 2022.02.20 + * @version 2022.05.27 */ get_header(); @@ -20,42 +20,53 @@ $col_array = array(
- +

- - - ID, 'love', true)) { echo get_post_meta($post->ID, 'love', true); } else { echo '0'; } _e('人点赞', 'kratos'); ?> - - + + + ID, 'love', true)) { + echo get_post_meta($post->ID, 'love', true); + } else { + echo '0'; + } + _e('人点赞', 'kratos'); ?> + + '; @@ -160,4 +171,4 @@ $col_array = array(
- + \ No newline at end of file diff --git a/style.css b/style.css index 0c92cbb..4f57ac7 100644 --- a/style.css +++ b/style.css @@ -920,7 +920,7 @@ ol { } .k-main .details .article .header .title { - padding-bottom: 0; + padding: 24px 0 0; border: none; } @@ -955,7 +955,6 @@ ol { content: ''; } -.k-main .details .article h1, .k-main .details .article .content h2, .k-main .details .article .content h3, .k-main .details .article .content h4, @@ -967,6 +966,12 @@ ol { line-height: 1.25; } +.k-main .details .article h1 { + margin-bottom: 16px; + font-weight: 500; + line-height: 1.25; +} + .k-main .details .article h1 { margin-bottom: 24px; font-size: 34px;