mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 21:16:23 +05:30
Cleaning up
This commit is contained in:
parent
0fba77f175
commit
dd0e16acf3
10 changed files with 48 additions and 31 deletions
|
|
@ -10,6 +10,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php $teaserType = config('teaser.type'); $readMore = config('read.more');?>
|
||||
<?php foreach ($posts as $p): ?>
|
||||
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
|
||||
<div class="main">
|
||||
|
|
@ -50,9 +51,8 @@
|
|||
</div>
|
||||
<?php } ?>
|
||||
<div class="teaser-body post-<?php echo $p->date;?>" itemprop="articleBody">
|
||||
<?php echo get_thumbnail($p->body) ?>
|
||||
<?php echo get_teaser($p->body, $p->url) ?>
|
||||
<?php if (config('teaser.type') === 'trimmed'):?><a href="<?php echo $p->url;?>"><?php echo config('read.more'); ?></a><?php endif;?>
|
||||
<?php if ($teaserType === 'trimmed'):?>[...] <a href="<?php echo $p->url;?>"><?php echo $readMore; ?></a><?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue