Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (20 sloc) 592 Bytes
custom_text = {
"tags": {
"slack": "My dealings with Slack",
"wordpress": "My WordPress tutorials",
"categories": {
"thoughts": "My thoughts on life, the universe, and everything",
"tutorials": "Stuff I've done that I thought you should know how to do",
def get_tag_heading(tag):
if custom_text["tags"].get(tag.slug):
return custom_text["tags"][tag.slug]
return f"All {tag} blogs"
def get_category_heading(category):
if custom_text["categories"].get(category.slug):
return custom_text["categories"][category.slug]
return f"All {category} blogs"
You can’t perform that action at this time.