mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
Update style
This commit is contained in:
parent
cc91b4478f
commit
bbd0357978
8 changed files with 26 additions and 6 deletions
|
|
@ -1668,7 +1668,7 @@ get('/post/:name', function ($name) {
|
|||
}
|
||||
|
||||
if (config('blog.enable') === 'true') {
|
||||
$blog = ' <span typeof="v:Breadcrumb"><a href="' . site_url() . 'blog">Blog</a></span> » ';
|
||||
$blog = ' <span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . 'blog">Blog</a></span> » ';
|
||||
} else {
|
||||
$blog = '';
|
||||
}
|
||||
|
|
@ -1680,7 +1680,7 @@ get('/post/:name', function ($name) {
|
|||
'p' => $current,
|
||||
'author' => $author,
|
||||
'bodyclass' => 'inpost',
|
||||
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> » '. $blog . $current->category . ' » ' . $current->title,
|
||||
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> » '. $blog . '<span typeof="v:Breadcrumb">' . $current->categoryb . '</span>' . ' » ' . $current->title,
|
||||
'prev' => has_prev($prev),
|
||||
'next' => has_next($next),
|
||||
'type' => $var,
|
||||
|
|
@ -2523,7 +2523,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
|
|||
}
|
||||
|
||||
if (config('blog.enable') === 'true') {
|
||||
$blog = ' <span typeof="v:Breadcrumb"><a href="' . site_url() . 'blog">Blog</a></span> » ';
|
||||
$blog = ' <span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . 'blog">Blog</a></span> » ';
|
||||
} else {
|
||||
$blog = '';
|
||||
}
|
||||
|
|
@ -2535,7 +2535,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
|
|||
'p' => $current,
|
||||
'author' => $author,
|
||||
'bodyclass' => 'inpost',
|
||||
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> » '. $blog . $current->category . ' » ' . $current->title,
|
||||
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> » '. $blog . '<span typeof="v:Breadcrumb">' . $current->categoryb . '</span>' . ' » ' . $current->title,
|
||||
'prev' => has_prev($prev),
|
||||
'next' => has_next($next),
|
||||
'type' => $var,
|
||||
|
|
|
|||
|
|
@ -266,9 +266,11 @@ function get_posts($posts, $page = 1, $perpage = 0)
|
|||
if($str[count($str) - 3] == 'uncategorized') {
|
||||
$category = default_category();
|
||||
$post->category = '<a href="' . $category->url . '">' . $category->title . '</a>';
|
||||
$post->categoryb = '<a property="v:title" rel="v:url" href="' . $category->url . '">' . $category->title . '</a>';
|
||||
} else {
|
||||
$category = get_category_info($str[count($str) - 3]);
|
||||
$post->category = '<a href="' . $category[0]->url . '">' . $category[0]->title . '</a>';
|
||||
$post->categoryb = '<a property="v:title" rel="v:url" href="' . $category[0]->url . '">' . $category[0]->title . '</a>';
|
||||
}
|
||||
$type = $str[count($str) - 2];
|
||||
|
||||
|
|
|
|||
|
|
@ -142,6 +142,17 @@ pre {
|
|||
margin:1em 0;
|
||||
}
|
||||
|
||||
.tags {
|
||||
margin-right:5px;
|
||||
}
|
||||
|
||||
.tags a {
|
||||
background-color: #f9f2f4;
|
||||
border-radius: 4px;
|
||||
color: #c7254e;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Table
|
||||
--------------------------*/
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
<div class="post-body" itemprop="articleBody">
|
||||
<?php echo $p->body; ?>
|
||||
</div>
|
||||
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
|
||||
</div>
|
||||
<div class="separator">→</div>
|
||||
<div class="share-box">
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
<div class="post-body" itemprop="articleBody">
|
||||
<?php echo $p->body; ?>
|
||||
</div>
|
||||
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
|
||||
</div>
|
||||
<div class="separator">→</div>
|
||||
<div class="share-box">
|
||||
|
|
|
|||
|
|
@ -154,6 +154,10 @@ a:hover {
|
|||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
|
||||
.tags a {
|
||||
margin-right:3px;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Text element
|
||||
--------------------------*/
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
<div class="post-body" itemprop="articleBody">
|
||||
<?php echo $p->body; ?>
|
||||
</div>
|
||||
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
|
||||
</div>
|
||||
<div class="separator">→</div>
|
||||
<div class="share-box">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue