Skip to content

Commit

Permalink
publication_list: move "abstract and details" to the first item.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Feb 28, 2017
1 parent 318f5b4 commit 147b699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v7/publication_list/publication_list.py
Expand Up @@ -132,11 +132,10 @@ def run(self):

if extra_links or detail_page_dir:
html += '<br>'
html += extra_links

if detail_page_dir: # render the details page of a paper
page_url = '/'.join((detail_page_dir, label + '.html'))
html += ' [<a href="{}">abstract and details</a>]'.format(
html += '[<a href="{}">abstract and details</a>] '.format(
self.site.config['BASE_URL'] + page_url)
context = {
'title': str(LaTeXParser(entry.fields['title']).parse()),
Expand All @@ -161,6 +160,7 @@ def run(self):
context,
)

html += extra_links
html += '</li>'

if len(data) != 0: # publication list is nonempty
Expand Down

0 comments on commit 147b699

Please sign in to comment.