Slightly imroved main quote rendering

This commit is contained in:
2018-04-10 20:56:56 +02:00
parent 9fb455fa53
commit b58e4e8c79
3 changed files with 8 additions and 11 deletions

View File

@ -37,14 +37,9 @@ func Get(ctx *aero.Context) string {
})
// Quotes
var mainQuote *arn.Quote
mainQuote := character.MainQuote()
quotes := character.Quotes()
for i, quote := range quotes {
if quote.IsMainQuote {
mainQuote = quote
quotes = append(quotes[:i], quotes[i+1:]...)
}
}
arn.SortQuotesPopularFirst(quotes)
// Set OpenGraph attributes