Skip to content

Commit

Permalink
Add 'noindex' meta tag for non-live websites
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-lgil committed Jun 14, 2024
1 parent 01f2e1f commit 01b547b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion catalog/templates/catalog/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
<meta name="ebi:review-cycle" content="30" /> <!-- In days, how often should the content be reviewed -->
<meta name="ebi:last-review" content="2019-07-25" /> <!-- The last time the content was reviewed -->
<meta name="ebi:expiry" content="2019-12-31" /> <!-- When this content is no longer relevant -->

{% if is_pgs_live_site is not True%}
<!-- Prevent the indexing of the website -->
<meta name="robots" content="noindex, nofollow" />
{% endif %}
<!-- If you link to any other sites frequently, consider optimising performance with a DNS prefetch -->
<link rel="dns-prefetch" href="//www.ebi.ac.uk/gwas/" />

Expand Down

0 comments on commit 01b547b

Please sign in to comment.