diff --git a/front-page.php b/front-page.php index aa15241..79a5940 100644 --- a/front-page.php +++ b/front-page.php @@ -32,15 +32,26 @@ $hero_bg = get_theme_mod( 'hero_background_image', get_template_directory_uri()
>
- + + +
+ ', '' ); ?> + +
+ + + + + +
diff --git a/functions.php b/functions.php index 56c6c1d..d855348 100644 --- a/functions.php +++ b/functions.php @@ -39,6 +39,17 @@ function wisdom1_scripts() { } add_action( 'wp_enqueue_scripts', 'wisdom1_scripts' ); +/** + * Calculate estimated reading time. + */ +function wisdom1_reading_time() { + $content = get_post_field( 'post_content', get_the_ID() ); + $word_count = str_word_count( strip_tags( $content ) ); + $reading_time = ceil( $word_count / 200 ); // Average 200 words per minute + + return $reading_time . ' min read'; +} + /** * Customizer additions. */ diff --git a/style.css b/style.css index 2e4a246..ca4bf30 100644 --- a/style.css +++ b/style.css @@ -240,6 +240,23 @@ img { color: var(--wp--preset--color--hover); } +.post-card-info { + display: flex; + align-items: center; + gap: 8px; + font-size: 11px; + color: var(--wp--preset--color--primary); + opacity: 0.6; + margin-top: 10px; + text-transform: uppercase; + font-weight: 700; + letter-spacing: 0.05em; +} + +.dot-separator { + color: var(--wp--preset--color--accent); +} + .entry-meta { font-size: 12px; text-transform: uppercase;