Skip to content

add referrerpolicy ? #916

Answered by cmoralesmx
sharadagarwal asked this question in Q&A
Discussion options

You must be logged in to vote

Currently it is not possible to add this attribute referrerpolicy="no-referrer-when-downgrade" to the generated link.
But, you can make a couple of changes to make this possible.

This change would require renaming a field in the bib file and creating a new entry in the template which creates the links.

  1. In your .bib file: Assuming you are using the html field to store the link to your papers, you'd rename the html field as ownhtml, as shown here,

  2. In _layouts/bib.html: You'd duplicate the 3 lines corresponding to the entry for entry.html (around line 141).
    And in the 3 lines that you just duplicated, change if entry.html -> if entry.ownhtml and add your custom attribute, as shown here,

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sharadagarwal
Comment options

Answer selected by sharadagarwal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants