bitprophet/fullerene — Issue #20: Domain name shortening
Author: bitprophet
Created: 2011-10-27 00:35:05+00:00
State: open

I.e. when displaying a bit list of hosts on a collection landing page, we get stuff like:

```
blah.whiskeymedia.com
blah2.whiskeymedia.com
blah3.whiskeymedia.com
foo.giantbomb.com
foo2.giantbomb.com
foo3.giantbomb.com
```

In real use this leads to a lot of repetition and visual clutter. Would be nice to define something simple that acts upon the domain part of a hostname string, e.g.:

```
domain_transforms:
whiskeymedia.com: wm
giantbomb.com: gb
```

which when applied turns the above list into:

```
blah.wm
blah2.wm
blah3.wm
foo.gb
foo2.gb
foo3.gb
```

Only downside is now they're slightly harder to tell apart, but one can address that themselves by selecting a medium-sized replacement like `whiskey` or `bomb`.

----

Could also extend this into a way of creating more hierarchy, so that even statically-generated flat host lists are displayed more like a tree.