Skip to content

Commit

Permalink
Add comma between topics if there's more than one (statamic#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Jan 23, 2021
1 parent 2f01628 commit 35488aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/articles/show.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1>{{ title }}</h1>
<div class="bg-gray-800 inline-block text-sm mb-16 pr-4 pl-16 -ml-16 uppercase tracking-widest text-white py-1 rounded-r-full">
Published
{{ if topics }}
in {{ topics }}<a href="{{ url }}" class="text-teal-light no-underline hover:text-white">{{ title }}</a>{{ /topics }}
in {{ topics }}<a href="{{ url }}" class="text-teal-light no-underline hover:text-white">{{ title }}</a>{{ unless last }}, {{ /unless }}{{ /topics }}
{{ /if }}
on {{ date format="M j, Y" }}
</div>
Expand Down

0 comments on commit 35488aa

Please sign in to comment.