This commit is contained in:
Ben Goldsworthy 2017-01-12 23:13:02 +00:00
parent f53ae91057
commit df05493b43
10 changed files with 520 additions and 619 deletions

View file

@ -12,7 +12,7 @@
<header class="entry-header">
<div class="post-header-image" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<div class="post-header-title"><?php the_title( '<h2>', '</h2>' ); ?></div>
<div class="post-header-title"><?php the_title( '<h1 id="post-title">', '</h1>' ); ?></div>
<div class="read-on"><a href="#body"><div class="arrow-down"></div></a></div>
</div>
</header><!-- .entry-header -->

View file

@ -8,7 +8,7 @@
*/
?>
<div class="col-m-4 col-3 col-w-5">
<div class="col-m-6 col-4 col-w-3">
<a href="<?php the_permalink(); ?>">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<header class="entry-header">
@ -17,9 +17,9 @@
<?php endif; ?>
<?php
if (strlen(get_the_title()) > 70) $small= "class=\"vsmall\"";
elseif (strlen(get_the_title()) > 35) $small = "class=\"small\"";
the_title( '<h3 '.$small.'>', '</h3>' );
if (strlen(get_the_title()) > 70) $small= "vsmall";
elseif (strlen(get_the_title()) > 35) $small = "small";
the_title( '<h2 class="post-title '.$small.'">', '</h2>' );
?>
</header><!-- .entry-header -->
</article><!-- #post-## -->