Example #1
0
func PageCanonical(p *post.Post) string {
	return "/" + p.Slug()
}
Example #2
0
func tokensFor(p *post.Post) nltk.TokenChan {
	bits := []string{p.Title, p.Description, p.Clean()}
	bits = append(bits, p.Tags...)
	return tokens(bits...)
}
Example #3
0
func PostCanonical(p *post.Post) string {
	return fmt.Sprintf("/%s/%s", p.PublishedOn.Format("2006/01/02"), p.Slug())
}