I was wondering if anyone has any suggestions, when ordering content alphabetically, on how to ignore prefixed articles such as “the”, “an”, or “a”. I have dozens of tags on my content, and when listing them out, I would like them to be ordered alphabetically while ignoring any articles that would effect the order. Furthermore, displaying the article at the end of the tag, as shown below, would be most ideal.
Here is some example code:
<ul>
{{ range .Site.Taxonomies.tags.Alphabetical }}
<li>{{ .Name }}</li>
{{ end }}
</ul>
Out of the box .Alphabetical
would display as:
- Authority
- Character
- Redemption
- The Garden
- The Mind
What I would like to achieve is:
- Authority
- Character
- Garden, The
- Mind, The
- Redemption
Thank you for all assistance!