'danpros/htmly', 'prerelease' => !!config("prerelease"), )); if ($updater->able()) { $info = $updater->getNewestInfo(); echo '
Release Title: '. $info['name'] .'
'; echo 'Version: '. $info['tag_name'] .'
'; echo 'Important: Please always backup your files before upgrading to newer version.
'; echo 'Update to ' . $info['tag_name'] . ' now
'; } else { echo 'Release Title: '. $info['name'] .'
'; echo 'Installed Version: '. $info['tag_name'] .'
'; echo 'Read on Github.
'; } $files = array(); $draft = array(); $files = glob('content/*/blog/*.md', GLOB_NOSORT); $draft = glob('content/*/draft/*.md', GLOB_NOSORT); if (!empty($files) || !empty($draft)) { migrate_old_content(); }