mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 13:36:22 +05:30
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:
parent
b16423fbc1
commit
a35e503fbf
5 changed files with 30 additions and 4 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue