mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 20:46:26 +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') {
|
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 {
|
} else {
|
||||||
$blog = '';
|
$blog = '';
|
||||||
}
|
}
|
||||||
|
|
@ -1680,7 +1680,7 @@ get('/post/:name', function ($name) {
|
||||||
'p' => $current,
|
'p' => $current,
|
||||||
'author' => $author,
|
'author' => $author,
|
||||||
'bodyclass' => 'inpost',
|
'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),
|
'prev' => has_prev($prev),
|
||||||
'next' => has_next($next),
|
'next' => has_next($next),
|
||||||
'type' => $var,
|
'type' => $var,
|
||||||
|
|
@ -2523,7 +2523,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config('blog.enable') === 'true') {
|
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 {
|
} else {
|
||||||
$blog = '';
|
$blog = '';
|
||||||
}
|
}
|
||||||
|
|
@ -2535,7 +2535,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
|
||||||
'p' => $current,
|
'p' => $current,
|
||||||
'author' => $author,
|
'author' => $author,
|
||||||
'bodyclass' => 'inpost',
|
'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),
|
'prev' => has_prev($prev),
|
||||||
'next' => has_next($next),
|
'next' => has_next($next),
|
||||||
'type' => $var,
|
'type' => $var,
|
||||||
|
|
|
||||||
|
|
@ -266,9 +266,11 @@ function get_posts($posts, $page = 1, $perpage = 0)
|
||||||
if($str[count($str) - 3] == 'uncategorized') {
|
if($str[count($str) - 3] == 'uncategorized') {
|
||||||
$category = default_category();
|
$category = default_category();
|
||||||
$post->category = '<a href="' . $category->url . '">' . $category->title . '</a>';
|
$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 {
|
} else {
|
||||||
$category = get_category_info($str[count($str) - 3]);
|
$category = get_category_info($str[count($str) - 3]);
|
||||||
$post->category = '<a href="' . $category[0]->url . '">' . $category[0]->title . '</a>';
|
$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];
|
$type = $str[count($str) - 2];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,17 @@ pre {
|
||||||
margin:1em 0;
|
margin:1em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tags {
|
||||||
|
margin-right:5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags a {
|
||||||
|
background-color: #f9f2f4;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #c7254e;
|
||||||
|
padding: 2px 4px;
|
||||||
|
}
|
||||||
|
|
||||||
/*-------------------------
|
/*-------------------------
|
||||||
Table
|
Table
|
||||||
--------------------------*/
|
--------------------------*/
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
<div class="post-body" itemprop="articleBody">
|
<div class="post-body" itemprop="articleBody">
|
||||||
<?php echo $p->body; ?>
|
<?php echo $p->body; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator">→</div>
|
<div class="separator">→</div>
|
||||||
<div class="share-box">
|
<div class="share-box">
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
<div class="post-body" itemprop="articleBody">
|
<div class="post-body" itemprop="articleBody">
|
||||||
<?php echo $p->body; ?>
|
<?php echo $p->body; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator">→</div>
|
<div class="separator">→</div>
|
||||||
<div class="share-box">
|
<div class="share-box">
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,10 @@ a:hover {
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tags a {
|
||||||
|
margin-right:3px;
|
||||||
|
}
|
||||||
|
|
||||||
/*-------------------------
|
/*-------------------------
|
||||||
Text element
|
Text element
|
||||||
--------------------------*/
|
--------------------------*/
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
<div class="post-body" itemprop="articleBody">
|
<div class="post-body" itemprop="articleBody">
|
||||||
<?php echo $p->body; ?>
|
<?php echo $p->body; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator">→</div>
|
<div class="separator">→</div>
|
||||||
<div class="share-box">
|
<div class="share-box">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue