mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 13:36:22 +05:30
Improve theme
Improve theme
This commit is contained in:
parent
3fb6c4bdb3
commit
b62f013588
10 changed files with 22 additions and 19 deletions
|
|
@ -133,7 +133,7 @@ get('/:year/:month/:name', function($year, $month, $name){
|
|||
render('post',array(
|
||||
'head_contents' => head_contents($current->title .' - ' . blog_title(), $description = get_description($current->body), $current->url),
|
||||
'p' => $current,
|
||||
'authorinfo' => '<div class="author-info"><h4>by <strong>' . $bio->title . '</strong></h4>' . $bio->body . '</div>',
|
||||
'authorinfo' => authorinfo($bio->title, $bio->body),
|
||||
'bodyclass' => 'inpost',
|
||||
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' .config('breadcrumb.home'). '</a></span> » '. $current->tagb . ' » ' . $current->title,
|
||||
'prev' => has_prev($prev),
|
||||
|
|
|
|||
|
|
@ -1346,6 +1346,13 @@ function blog_copyright() {
|
|||
return config('blog.copyright');
|
||||
}
|
||||
|
||||
// Return author info
|
||||
function authorinfo($title=null, $body=null) {
|
||||
if (config('author.info') == 'true') {
|
||||
return '<div class="author-info"><h4>by <strong>' . $title . '</strong></h4>' . $body . '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
function head_contents($title, $description, $canonical) {
|
||||
$output = '';
|
||||
$title = '<title>' . $title . '</title>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue