# Lists of content divided by posts' first letter

**URL:** <https://discourse.gohugo.io/t/lists-of-content-divided-by-posts-first-letter/8534>\
**Category:** support\
**Created:** [September 27, 2017, 7:44am UTC](https://discourse.gohugo.io/t/lists-of-content-divided-by-posts-first-letter/8534 "2017-09-27T07:44:29Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![khabaroff](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/khabaroff/32/2512_2.png) [@khabaroff](https://discourse.gohugo.io/u/khabaroff)\
**Post date:** [September 28, 2017, 12:39pm UTC](https://discourse.gohugo.io/t/lists-of-content-divided-by-posts-first-letter/8534/10 "2017-09-28T12:39:16Z")

</div>

Got it! Now I need to reuse code to solve this

My post have this structure  
Blondie — Parallel Lines (1978)  
Blackstreet — Blackstreet (1994)  
Big Black — Songs About Fucking (1987)

I cut year string (substr .Title -2 4) but I need to do sort then as something like  
{{ range sort .Site.RegularPages }}{{ substr .Title -2 4 }}  
correct?

Output: [https://khabaroff.com/1000/page/years/](https://khabaroff.com/1000/page/years/)

Here is repo

> <https://github.com/khabaroff/1000/blob/master/themes/hugo-theme-bleak/layouts/page/single.html>

---

_[View the full topic](https://discourse.gohugo.io/t/lists-of-content-divided-by-posts-first-letter/8534)._
