I love the front page and want to keep the front page as it is.

But I am wanting to style my blog pages, whilst keeping the blog entry that is published to the front page the same as the other nodes.

When I created my node--blog.tpl.php with this code, the blog pages looked perfect, except a blog entry published to the front page didn't keep in style with the other nodes.

<div class="<?php print $classes; ?>">
  <div class="node-inner clearfix">
   <span "text-transform: capitalize"> <?php print render($title_prefix); ?></span>
   <br /> 
    <?php if (!$page): ?>
      <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
    <?php endif; ?>
    <?php print render($title_suffix); ?>

	<div class="meta">
      <?php if ($display_submitted): ?>
        <?php print t('Published by '); ?><?php print $name; ?>
	  <?php endif; ?>
	        <?php if (!empty($content['field_tags'])): ?>
        <?php print ' in '.render($content['field_tags']);  ?>
      <?php endif; ?>
    </div>

    <div class="content clearfix">
	<div class="dateblockblog">
      <span class="month"><?php print date("M", $created);?></span>
      <span class="day"><?php print date("d", $created);?></span>
      <span class="year"><?php print date("Y", $created);?></span>
    </div>
    <?php
      hide($content['comments']);
      hide($content['links']);
	  hide($content['field_tags']);
      print render($content);
    ?>
    </div>

    <?php if ($content['links']): ?>
      <div class="extra-links">
	    <?php if (!$page): ?>
	      <div class="read-more"><?php print l(t('Read more'), 'node/' . $nid, array('attributes' => array('class' => t('node-readmore-link')))); ?></div>
		<?php endif; ?>
        <?php print render($content['links']); ?>
      </div>
	<?php endif; ?>

    <?php print render($content['comments']); ?>
  </div>
</div> <!-- /node-inner, /node -->

I am novice at templating, but am good at tweaking. But have no idea what to do.

I would appreciate any help. And eagerly look forward to hearing from you.

Comments

Branndon’s picture

Old post, I know. If it's themeable via CSS, just use create classes for the front page, like
.front .blogstyle