Skip to content

Commit ba25108

Browse files
committed
Do not render read more and other links in teaser
Not needed. View mode used to inline render node
1 parent 76d344b commit ba25108

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

templates/node--character.tpl.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,14 @@
109109
$links = render($content['links']);
110110
if ($field_tags || $links):
111111
?>
112-
<footer>
113-
<?php print $field_tags; ?>
114-
<?php print $links; ?>
115-
</footer>
112+
113+
<?php if ($view_mode !== 'teaser'): ?>
114+
<footer>
115+
<?php print $field_tags; ?>
116+
<?php print $links; ?>
117+
</footer>
118+
<?php endif; ?>
119+
116120
<?php endif; ?>
117121
<?php print render($content['comments']); ?>
118122
</article>

0 commit comments

Comments
 (0)