Add option to control whether boards and pages are indexed by search engines, using the X-Robots-Tag header

This commit is contained in:
Kijin Sung 2023-08-13 02:03:02 +09:00
parent fde3609f70
commit 2197b0a982
7 changed files with 37 additions and 9 deletions

View file

@ -36,6 +36,14 @@
<p id="browser_title_help" class="x_help-block" hidden>{$lang->about_browser_title}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->cmd_robots_tag}</label>
<div class="x_controls">
<label class="x_inline" for="robots_tag_all"><input type="radio" name="robots_tag" id="robots_tag_all" value="all" checked="checked"|cond="$module_info->robots_tag !== 'noindex'" /> {$lang->cmd_yes}</label>
<label class="x_inline" for="robots_tag_noindex"><input type="radio" name="robots_tag" id="robots_tag_noindex" value="noindex" checked="checked"|cond="$module_info->robots_tag === 'noindex'" /> {$lang->cmd_no}</label>
<p class="x_help-inline">{$lang->msg_about_robots_tag}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="lang_meta_keywords">{$lang->meta_keywords}</label>
<div class="x_controls">