diff options
-rw-r--r-- | resources/pug/finals/index.pug | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/pug/finals/index.pug b/resources/pug/finals/index.pug index fd56a77..4e4c1e5 100644 --- a/resources/pug/finals/index.pug +++ b/resources/pug/finals/index.pug @@ -74,10 +74,10 @@ block content mixin pub(year, title) p if attributes.oa - if attributes.doi - - var oaurl = 'https://doi.org/'+attributes.doi - else if attributes.url + if attributes.url - var oaurl = attributes.url + else if attributes.doi + - var oaurl = 'https://doi.org/'+attributes.doi else - throw 'pub: oa set but no doi or url' a.oa(href!=oaurl, target='_blank') |