summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-20 15:01:38 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-20 15:01:38 -0700
commit41aa0edaf826cd6561b4b12d1040d403db51e4ea (patch)
tree46c049f0cab5ae3d259787939f53c42fbcba0601 /fatcat_scholar/templates
parente567b1fe1b970d442994702f82013cec1429f259 (diff)
downloadfatcat-scholar-41aa0edaf826cd6561b4b12d1040d403db51e4ea.tar.gz
fatcat-scholar-41aa0edaf826cd6561b4b12d1040d403db51e4ea.zip
html: add <a> rel tags where appropriate
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/base.html6
-rw-r--r--fatcat_scholar/templates/search_macros.html10
2 files changed, 8 insertions, 8 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index 394a585..0bc92f2 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -209,7 +209,7 @@
<div style="display: flex; width: 100%; justify-content: space-between; padding-top: 0.5em;">
<div></div>
<div>
- <a href="{{ lang_prefix }}/help" style="order: -1;">{{ _("User Guide") }}</a>
+ <a rel="help" href="{{ lang_prefix }}/help" style="order: -1;">{{ _("User Guide") }}</a>
</div>
</div>
</div>
@@ -261,7 +261,7 @@
<a target="_blank" rel="noopener" href="https://guide.fatcat.wiki" class="item">{{ _("Contribute") }}</a>
<a target="_blank" rel="noopener" href="/api/redoc" class="item">{{ _("Search API") }}</a>
<a target="_blank" rel="noopener noreferrer" href="https://status.fatcat.wiki" class="item">{{ _("Service Status") }}</a>
- <a target="_blank" rel="noopener noreferrer" href="https://github.com/internetarchive/fatcat-scholar" class="item">{{ _("Source Code") }}</a>
+ <a target="_blank" rel="external noopener noreferrer" href="https://github.com/internetarchive/fatcat-scholar" class="item">{{ _("Source Code") }}</a>
</div>
</nav>
<nav class="three wide column">
@@ -270,7 +270,7 @@
<a href="{{ lang_prefix }}/about#howitworks" class="item">{{ _("How It Works") }}</a>
<a href="{{ lang_prefix }}/about#sources" class="item">{{ _("Content Sources") }}</a>
<a href="{{ lang_prefix }}/about#tdm" class="item">{{ _("Text and Data Mining") }}</a>
- <a href="{{ lang_prefix }}/help" class="item">{{ _("Help") }}</a>
+ <a href="{{ lang_prefix }}/help" rel="help" class="item">{{ _("Help") }}</a>
</div>
</nav>
</div>
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index c7c0eb4..66dd975 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -130,19 +130,19 @@
{# ### IDENTIFIERS #}
{% if paper.biblio.doi %}
- <a target="_blank" rel="noopener noreferrer" href="https://doi.org/{{paper.biblio.doi }}" style="color: green;">doi:{{ paper.biblio.doi }}</a> &nbsp;
+ <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/{{paper.biblio.doi }}" style="color: green;">doi:{{ paper.biblio.doi }}</a> &nbsp;
{% endif %}
{% if paper.biblio.pmid %}
- <a target="_blank" rel="noopener" href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.biblio.pmid }}" style="color: green;">pmid:{{ paper.biblio.pmid }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://www.ncbi.nlm.nih.gov/pubmed/{{paper.biblio.pmid }}" style="color: green;">pmid:{{ paper.biblio.pmid }}</a> &nbsp;
{% endif %}
{% if paper.biblio.pmcid %}
- <a target="_blank" rel="noopener" href="https://pubmed.ncbi.nlm.nih.gov/{{paper.biblio.pmcid }}/" style="color: green;">pmcid:{{ paper.biblio.pmcid }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://pubmed.ncbi.nlm.nih.gov/{{paper.biblio.pmcid }}/" style="color: green;">pmcid:{{ paper.biblio.pmcid }}</a> &nbsp;
{% endif %}
{% if paper.biblio.arxiv_id %}
- <a target="_blank" rel="noopener" href="https://arxiv.org/abs/{{paper.biblio.arxiv_id }}" style="color: green;">arXiv:{{ paper.biblio.arxiv_id }}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://arxiv.org/abs/{{paper.biblio.arxiv_id }}" style="color: green;">arXiv:{{ paper.biblio.arxiv_id }}</a> &nbsp;
{% endif %}
{% if paper.biblio.release_ident %}
- <a target="_blank" rel="noopener" href="https://fatcat.wiki/release/{{paper.biblio.release_ident}}" style="color: green;">fatcat:{{ paper.biblio.release_ident}}</a> &nbsp;
+ <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/{{paper.biblio.release_ident}}" style="color: green;">fatcat:{{ paper.biblio.release_ident}}</a> &nbsp;
{% endif %}
<div style="margin-top: 0.2em;">