diff --git a/src/assets/scss/_list-post.scss b/src/assets/scss/_list-post.scss index 987b2a5..27f8467 100644 --- a/src/assets/scss/_list-post.scss +++ b/src/assets/scss/_list-post.scss @@ -20,6 +20,9 @@ } } .blog-content{ + font-size: 0.75rem; + font-weight: 400; + color: #898d8f; &.blog-flex{ @media screen { @media (min-width: 768px) { @@ -38,6 +41,7 @@ } .text-black{ font-weight: 400; + font-size: 1rem; } time{ font: { diff --git a/src/functions/single-functions.php b/src/functions/single-functions.php index 4e79605..00503a6 100644 --- a/src/functions/single-functions.php +++ b/src/functions/single-functions.php @@ -57,14 +57,25 @@ add_filter( 'comment_text', 'wrap_Comment', 99); /** * Display date of post. */ -function tainacan_post_date() { - $time_string = ''; +function tainacan_meta_date_author($echo = true) { + $time = ''; - $time_string = sprintf( $time_string, + $time_string = sprintf( $time, esc_attr( get_the_date( 'c' ) ), get_the_date() ); - echo $time_string; + + $string = $time_string; + $string .= __(' by ', 'tainacan-theme'); + $string .= get_the_author_posts_link(); + + $string = apply_filters('tainacan-meta-date-author', $string); + + if ($echo) { + echo $string; + } else { + return $string; + } } // define the cancel_comment_reply_link callback diff --git a/src/tainacan/single-items.php b/src/tainacan/single-items.php index f9601db..9e04d82 100644 --- a/src/tainacan/single-items.php +++ b/src/tainacan/single-items.php @@ -22,8 +22,7 @@
>
- - +
diff --git a/src/template-parts/list-post.php b/src/template-parts/list-post.php index 8bd877f..474bd78 100644 --- a/src/template-parts/list-post.php +++ b/src/template-parts/list-post.php @@ -9,8 +9,8 @@ '.wp_trim_words( get_the_excerpt(), 28, '...').'

'; ?> - - + + diff --git a/src/template-parts/loop-tainacan-collection.php b/src/template-parts/loop-tainacan-collection.php index dd0e09c..b90a75f 100644 --- a/src/template-parts/loop-tainacan-collection.php +++ b/src/template-parts/loop-tainacan-collection.php @@ -21,10 +21,6 @@

- diff --git a/src/template-parts/single-post.php b/src/template-parts/single-post.php index 4529baa..f671979 100644 --- a/src/template-parts/single-post.php +++ b/src/template-parts/single-post.php @@ -2,7 +2,7 @@
-   +