Added option to hide HTMLy version publicly and added version to admin layout

A configuration setting has been added to allow users to hide the version of HTMLy from the source code publicly as a security precaution. The version has been added to the admin layout for easier visibility for admins.
This commit is contained in:
KuJoe 2024-05-22 10:16:25 -04:00
commit a35e503fbf
5 changed files with 30 additions and 4 deletions

View file

@ -3440,7 +3440,9 @@ function head_contents()
$output .= '<meta charset="utf-8" />' . "\n";
$output .= '<meta http-equiv="X-UA-Compatible" content="IE=edge" />' . "\n";
$output .= '<meta name="viewport" content="width=device-width, initial-scale=1" />' . "\n";
$output .= '<meta name="generator" content="' . $version . '" />' . "\n";
if (config('show.version') == 'true') {
$output .= '<meta name="generator" content="' . $version . '" />' . "\n";
}
$output .= $favicon;
$output .= '<link rel="sitemap" href="' . site_url() . 'sitemap.xml" />' . "\n";
$output .= '<link rel="alternate" type="application/rss+xml" title="' . blog_title() . ' Feed" href="' . site_url() . 'feed/rss" />' . "\n";