diff options
author | Jordan <me@jordan.im> | 2022-01-15 10:56:09 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2022-01-15 10:56:09 -0700 |
commit | 35339a2918240c7948d2748b2e8d484ea5cd9a76 (patch) | |
tree | 544064385b20ac74fb879db7a632de4dae4d0e9d /templates/list.html | |
parent | ce063274e2711e615dc2eea1a44ff1f1867d9d0f (diff) | |
download | crane-35339a2918240c7948d2748b2e8d484ea5cd9a76.tar.gz crane-35339a2918240c7948d2748b2e8d484ea5cd9a76.zip |
http, templates: normalize paper metadata
Diffstat (limited to 'templates/list.html')
-rw-r--r-- | templates/list.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/list.html b/templates/list.html index b9f7fd2..6d6cdaf 100644 --- a/templates/list.html +++ b/templates/list.html @@ -10,12 +10,14 @@ <div class="paper"> {{ if $paper.Meta.Title }} <span class="title"> - <a href='/download/{{ $path }}' title='{{ $paper.Meta.Title }}'>{{ $paper.Meta.Title }}</a> + <a href='/download/{{ $path }}' title='{{ normalizeStr $paper.Meta.Title }}'> + {{- normalizeStr $paper.Meta.Title }}</a> </span> <br /> {{ else }} <span class="title"> - <a href='/download/{{ $path }}' title='{{ $paper.PaperName }}'>{{ $paper.PaperName }}</a> + <a href='/download/{{ $path }}' title='{{ $paper.PaperName }}'> + {{- $paper.PaperName }}</a> </span> <br /> {{ end }} @@ -46,7 +48,8 @@ {{ else if $paper.Meta.ArxivID }} {{ if $hasVal }}- {{ end }} <span class="doi"> - <a href="https://arxiv.org/abs/{{ $paper.Meta.ArxivID }}">{{ $paper.Meta.ArxivID }}</a> + <a href="https://arxiv.org/abs/{{ $paper.Meta.ArxivID }}"> + {{- $paper.Meta.ArxivID }}</a> </span> {{ else if $paper.Meta.Resource }} {{ if $hasVal }}- {{ end }} |