mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 19:26:08 +05:30
Prepare release
This commit is contained in:
parent
95c37af952
commit
d2fe54d166
7 changed files with 15 additions and 5 deletions
2
cache/installedVersion.json
vendored
2
cache/installedVersion.json
vendored
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"tag_name": "v3.0.1"
|
||||
"tag_name": "v3.0.2"
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
define('HTMLY', true);
|
||||
define('HTMLY_VERSION', 'v3.0.1');
|
||||
define('HTMLY_VERSION', 'v3.0.2');
|
||||
$config_file = 'config/config.ini';
|
||||
require 'system/vendor/autoload.php';
|
||||
require 'system/htmly.php';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
|
||||
<link href="<?php echo site_url() ?>system/resources/css/adminlte.min.css" rel="stylesheet">
|
||||
<link href="<?php echo site_url() ?>system/resources/css/adminlte.min.css?v=1" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
|
|
|
|||
|
|
@ -3518,6 +3518,8 @@ get('/'. permalink_type() .'/:name', function ($name) {
|
|||
$author->description = $current->authorDescription;
|
||||
$author->about = $current->authorAbout;
|
||||
$author->avatar = $current->authorAvatar;
|
||||
$author->rss = $current->authorRss;
|
||||
$author->slug = $current->author;
|
||||
|
||||
if (array_key_exists('prev', $post)) {
|
||||
$prev = $post['prev'];
|
||||
|
|
@ -4693,6 +4695,8 @@ get('/:year/:month/:name', function ($year, $month, $name) {
|
|||
$author->description = $current->authorDescription;
|
||||
$author->about = $current->authorAbout;
|
||||
$author->avatar = $current->authorAvatar;
|
||||
$author->rss = $current->authorRss;
|
||||
$author->slug = $current->author;
|
||||
|
||||
if (array_key_exists('prev', $post)) {
|
||||
$prev = $post['prev'];
|
||||
|
|
|
|||
|
|
@ -441,6 +441,7 @@ function get_posts($posts, $page = 1, $perpage = 0)
|
|||
// The post author + author url
|
||||
$post->author = $author;
|
||||
$post->authorUrl = site_url() . 'author/' . $author;
|
||||
$post->authorRss = site_url() . 'author/' . $author . '/feed';
|
||||
|
||||
$profile = get_author($author);
|
||||
if (isset($profile[0])) {
|
||||
|
|
@ -1268,6 +1269,7 @@ function default_profile($name)
|
|||
$author->url = site_url(). 'author/' . $name;
|
||||
$author->slug = $name;
|
||||
$author->file = '';
|
||||
$author->rss = $author->url . '/feed';
|
||||
|
||||
return $tmp[] = $author;
|
||||
}
|
||||
|
|
@ -2048,9 +2050,11 @@ function has_prev($prev)
|
|||
'tag' => $prev->tag,
|
||||
'author' => $prev->author,
|
||||
'authorName' => $prev->authorName,
|
||||
'authorDescription' => $prev->authorDescription,
|
||||
'authorAbout' => $prev->authorAbout,
|
||||
'authorUrl' => $prev->authorUrl,
|
||||
'authorAvatar' => $prev->authorAvatar,
|
||||
'authorRss' => $prev->authorRss,
|
||||
'related' => $prev->related,
|
||||
'views' => $prev->views,
|
||||
'type' => $prev->type,
|
||||
|
|
@ -2087,9 +2091,11 @@ function has_next($next)
|
|||
'tag' => $next->tag,
|
||||
'author' => $next->author,
|
||||
'authorName' => $next->authorName,
|
||||
'authorDescription' => $prev->authorDescription,
|
||||
'authorAbout' => $next->authorAbout,
|
||||
'authorUrl' => $next->authorUrl,
|
||||
'authorAvatar' => $next->authorAvatar,
|
||||
'authorRss' => $next->authorRss,
|
||||
'related' => $next->related,
|
||||
'views' => $next->views,
|
||||
'type' => $next->type,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<meta name="description" content="<?php echo $description; ?>"/>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php echo $metatags;?>
|
||||
<link href="<?php echo theme_path() ?>css/style.css" rel="stylesheet"/>
|
||||
<link href="<?php echo theme_path() ?>css/style.css?v=1" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans+Condensed:700&subset=latin,cyrillic-ext" rel="stylesheet"/>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<meta name="description" content="<?php echo $description; ?>"/>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php echo $metatags;?>
|
||||
<link href="<?php echo theme_path() ?>css/style.css" rel="stylesheet"/>
|
||||
<link href="<?php echo theme_path() ?>css/style.css?v=1" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue