Skip to content

Commit

Permalink
publication_list: Link to fulltext does not need to end with ".pdf"
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Mar 4, 2018
1 parent 334f7de commit 24fad73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v7/publication_list/publication_list.py
Expand Up @@ -216,7 +216,7 @@ def run(self):
'extra_links': extra_links + bibtex_display
}

if 'fulltext' in entry.fields and entry.fields['fulltext'].endswith('.pdf'):
if 'fulltext' in entry.fields:
context['pdf'] = entry.fields['fulltext']

self.site.render_template(
Expand Down

0 comments on commit 24fad73

Please sign in to comment.