24 lines
390 B
Go
24 lines
390 B
Go
package constants
|
|
|
|
type SortOption struct {
|
|
Name string
|
|
Display string
|
|
}
|
|
|
|
// DefaultSortOptions are the different ways that posts in the post-browser template
|
|
// can be sorted.
|
|
var DefaultSortOptions = []SortOption{
|
|
{
|
|
Name: "newest",
|
|
Display: "Newest",
|
|
},
|
|
{
|
|
Name: "low_to_high",
|
|
Display: "Low To High",
|
|
},
|
|
{
|
|
Name: "high_to_low",
|
|
Display: "High To Low",
|
|
},
|
|
}
|