Commit 53f4e49e authored by Fabien Manière's avatar Fabien Manière

don't display ', ' prefix on authors in a document

parent c13a7aff
Pipeline #5463 failed with stage
in 0 seconds
......@@ -156,6 +156,10 @@ layoutWithContextNgramsCpt = here.component "layoutWithContextNgrams" cpt where
-- here.log2 "[setTermList] calling reload" reload'
-- T2.reload reload
authors' = fromMaybe "" $ do
authors <- doc.authors
String.stripPrefix (String.Pattern ", ") authors
hasAbstract = maybe false (not String.null) doc.abstract
annotate text = AnnotatedField.annotatedField
......@@ -296,7 +300,7 @@ layoutWithContextNgramsCpt = here.component "layoutWithContextNgrams" cpt where
-- btnSeeMore "title"
]
,
R2.fromMaybe doc.authors \authors ->
R2.fromMaybe (Just authors') \authors ->
H.div
{ className: "document-layout__authors justify-content-space-between" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment