Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix(eLife): Figures pdf list item should be sibling of article pdf li…
Browse files Browse the repository at this point in the history
…st item

Merge pull request #200 from nlisgo/fix-download-links
Figures pdf list item should be sibling of article pdf list item
  • Loading branch information
alex-ketch authored Jul 2, 2020
2 parents 7bbc7d7 + 49b8c30 commit b7b7167
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/themes/elife/lib/downloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const deriveUrl = (type: string, id: string, title = ''): string => {

const buildLinkToFiguresPdf = (url: string): void => {
after(
select('[data-is-download-pdf-link]')[0],
select('[data-is-download-pdf-list-item]')[0],
create('li', null, create('a', { href: url }, 'Figures PDF'))
)
}
Expand All @@ -45,12 +45,8 @@ const buildMenu = (
null,
create(
'li',
null,
create(
'a',
{ href: pdfUrl, 'data-is-download-pdf-link': true },
'Article PDF'
)
{ 'data-is-download-pdf-list-item': true },
create('a', { href: pdfUrl }, 'Article PDF')
)
),
create('h3', null, 'Download citations'),
Expand Down

0 comments on commit b7b7167

Please sign in to comment.