56 lines
1.6 KiB
PHP
56 lines
1.6 KiB
PHP
<?php get_header(); ?>
|
|
|
|
<main>
|
|
<?php if ( have_posts() ) : ?>
|
|
<?php
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
$excerpt = has_excerpt() ? get_the_excerpt() : '';
|
|
?>
|
|
<section class="blog-hero">
|
|
<div class="blog-hero-inner">
|
|
<div class="mb-6">
|
|
<?php if ( function_exists( 'rank_math_the_breadcrumbs' ) ) { rank_math_the_breadcrumbs(); } ?>
|
|
</div>
|
|
<h1 class="blog-hero-title"><?php the_title(); ?></h1>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="blog-shell">
|
|
<article <?php post_class( 'blog-article' ); ?>>
|
|
<p class="blog-meta">
|
|
<span><?php echo esc_html( turquesa_blog_date() ); ?></span>
|
|
<span aria-hidden="true">·</span>
|
|
<span><?php echo esc_html( turquesa_blog_byline() ); ?></span>
|
|
</p>
|
|
|
|
<?php the_content(); ?>
|
|
|
|
<div class="blog-cta">
|
|
<p class="blog-cta-kicker">Siguiente paso</p>
|
|
<p class="blog-cta-copy">Si este artículo describe tu caso, el diagnóstico de Turquesa Digital ordena keyword, página y métrica dueña.</p>
|
|
<a class="btn-glow inline-flex h-12 items-center justify-center rounded-md bg-brand-gradient px-5 text-[15px] font-semibold text-brand-background" href="/#diagnostico">Solicitar diagnóstico →</a>
|
|
</div>
|
|
</article>
|
|
|
|
<?php
|
|
turquesa_blog_render_aside(
|
|
array(
|
|
'exclude_id' => get_the_ID(),
|
|
'excerpt' => wp_strip_all_tags( $excerpt ),
|
|
)
|
|
);
|
|
?>
|
|
</section>
|
|
<?php endwhile; ?>
|
|
<?php else : ?>
|
|
<section class="blog-hero">
|
|
<div class="blog-hero-inner">
|
|
<h1 class="blog-hero-title"><?php esc_html_e( 'No hay contenido.', 'html5blank' ); ?></h1>
|
|
</div>
|
|
</section>
|
|
<?php endif; ?>
|
|
</main>
|
|
|
|
<?php get_footer(); ?>
|