From 35339a2918240c7948d2748b2e8d484ea5cd9a76 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sat, 15 Jan 2022 10:56:09 -0700 Subject: http, templates: normalize paper metadata --- templates/admin-edit.html | 3 ++- templates/list.html | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/admin-edit.html b/templates/admin-edit.html index d8805f9..d4c9196 100644 --- a/templates/admin-edit.html +++ b/templates/admin-edit.html @@ -65,7 +65,8 @@ {{ if $paper.Meta.Title }} - {{ $paper.Meta.Title }} + + {{- normalizeStr $paper.Meta.Title }}
{{ else }} 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 @@
{{ if $paper.Meta.Title }} - {{ $paper.Meta.Title }} + + {{- normalizeStr $paper.Meta.Title }}
{{ else }} - {{ $paper.PaperName }} + + {{- $paper.PaperName }}
{{ end }} @@ -46,7 +48,8 @@ {{ else if $paper.Meta.ArxivID }} {{ if $hasVal }}- {{ end }} - {{ $paper.Meta.ArxivID }} + + {{- $paper.Meta.ArxivID }} {{ else if $paper.Meta.Resource }} {{ if $hasVal }}- {{ end }} -- cgit v1.2.3-54-g00ecf