mirror of
https://github.com/danpros/htmly.git
synced 2026-04-23 05:56:22 +05:30
Improve theme
This commit is contained in:
parent
8b2d616a88
commit
38faebe6d6
11 changed files with 94 additions and 29 deletions
|
|
@ -242,6 +242,17 @@ ul li, ol li {
|
|||
margin: 0.25em 0;
|
||||
}
|
||||
|
||||
.category {
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
color: #333;
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
margin: 20px 0;
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Header
|
||||
--------------------------*/
|
||||
|
|
|
|||
|
|
@ -1,6 +1,16 @@
|
|||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (config('category.info')):?>
|
||||
<?php if (!empty($category)): ?>
|
||||
<div class="category">
|
||||
<h2 class="category-title"><?php echo $category->title;?></h2>
|
||||
<div class="category-content">
|
||||
<?php echo $category->body; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php $i = 0; $len = count($posts); ?>
|
||||
<?php foreach ($posts as $p): ?>
|
||||
<?php if ($i == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue