Skip to content

Instantly share code, notes, and snippets.

@andresgallo
Created March 18, 2025 15:16
Show Gist options
  • Save andresgallo/acff40abafb377855237c2bb7c5c92ae to your computer and use it in GitHub Desktop.
Save andresgallo/acff40abafb377855237c2bb7c5c92ae to your computer and use it in GitHub Desktop.
<div class="Page-byline">
<div class="Page-authors">
{{#if authors}}
<span>{{~format "/page/Page" "authorBy"~}}</span>
{{#set authorsCount=(length authors)}}
{{~#each authors~}}
{{~#not (or @first @last)~}}
,&nbsp;
{{~else~}}
{{~#if @last~}}
{{~#not @first~}}
&nbsp;and&nbsp;
{{~/not~}}
{{~/if~}}
{{~/not~}}
{{~include "/author/byline/AuthorByline-InPage.hbs" this email=(not (le (get "authorsCount") 1) then=null otherwise=email)~}}
{{~/each~}}
{{/set}}
{{/if}}
</div>
<div class="Page-authors">
{{#if authors}}
<span>{{~format "/page/Page" "authorBy"~}}</span>
{{~#each authors~}}
{{~#not (or @first @last)~}}
,&nbsp;
{{~else~}}
{{~#if @last~}}
{{~#not @first~}}
&nbsp;and&nbsp;
{{~/not~}}
{{~/if~}}
{{~/not~}}
// {{PRINTAUTHORHERE}}
{{~/each~}}
{{/if}}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment