Fix permalink functionality, which was broken in 62dd1d4.
authorDato Simó <dato@net.com.org.es>
Sun, 11 May 2014 00:27:49 +0000 (01:27 +0100)
committerspf13 <steve.francia@gmail.com>
Mon, 12 May 2014 19:47:52 +0000 (15:47 -0400)
commit025a37df2f829a1799a2995ef8e49d591e96bee3
treef15e83416c0e4cee968fbd79dbce73228801ba36
parent05b76dcb6fb02fdaa7e8b99cd5cb123bdae8881e
Fix permalink functionality, which was broken in 62dd1d4.

Viper stores Permalinks as a map[string]interface{}, so the type assertion
to PermalinkOverrides (map[string]PathPattern) will always fail.

We can, however, get Permalinks as a map[string]string, and convert each
value to a PathPattern.
hugolib/site.go
hugolib/siteinfo_test.go