Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bluecheese
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
bluecheese
Commits
04785c55
Commit
04785c55
authored
1 year ago
by
Brendan Blaine
Committed by
Neil Drumm
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3353474
: Prevent search engines/robots from using the announcement banner as a snippet
parent
7d5da17a
No related branches found
No related tags found
1 merge request
!28
Add data-nosnippet to the banner in the hopes that convinces google's bot to not index the banner
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tpl/page--type-guide.tpl.php
+1
-1
1 addition, 1 deletion
tpl/page--type-guide.tpl.php
tpl/page.tpl.php
+1
-1
1 addition, 1 deletion
tpl/page.tpl.php
with
2 additions
and
2 deletions
tpl/page--type-guide.tpl.php
+
1
−
1
View file @
04785c55
...
...
@@ -30,7 +30,7 @@
<div
class=
"breadbox"
>
<?php
print
$breadcrumb
;
?>
</div>
<?php
if
(
!
empty
(
$page
[
'banner'
]))
:
?>
<div
id=
"banner"
>
<div
id=
"banner"
data-nosnippet
>
<?php
print
render
(
$page
[
'banner'
]);
?>
</div>
<?php
endif
;
?>
...
...
This diff is collapsed.
Click to expand it.
tpl/page.tpl.php
+
1
−
1
View file @
04785c55
...
...
@@ -27,7 +27,7 @@
<?php
endif
;
?>
<?php
if
(
!
empty
(
$page
[
'banner'
]))
:
?>
<div
id=
"banner"
>
<div
id=
"banner"
data-nosnippet
>
<?php
print
render
(
$page
[
'banner'
]);
?>
</div>
<?php
endif
;
?>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment