Skip to content

templating name for file - how to use author et al. + title? #120

Answered by aidenlx
danieltomasz asked this question in Q&A
Discussion options

You must be logged in to vote

I'll add a helper authorsShort that output authors in the format you've mentioned in next release, meanwhile you can do something like this:

<%= it.authors.first()?.lastName %>
<% if (it.authors.length > 1) { %> et al. <% } %>
- <%= it.date %> - <%= it.title %>

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@danieltomasz
Comment options

@aidenlx
Comment options

@danieltomasz
Comment options

@lwq-star
Comment options

Answer selected by aidenlx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #119 on April 06, 2023 06:18.