Skip to content

Commit

Permalink
Merge pull request #374 from ens-lgil/feature/noindex
Browse files Browse the repository at this point in the history
Add 'noindex' meta tag for non-live websites
  • Loading branch information
fyvon committed Jun 14, 2024
2 parents 01f2e1f + c027024 commit ee74287
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 not is_pgs_live_site %}
<!-- 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 ee74287

Please sign in to comment.