title case titles
This commit is contained in:
parent
44d8251ebc
commit
7f95ff8ba9
2 changed files with 7 additions and 3 deletions
|
@ -26,11 +26,15 @@ def limit(line, length):
|
||||||
|
|
||||||
|
|
||||||
def get_title(instance):
|
def get_title(instance):
|
||||||
return get_attribute(instance, 'title') or (hasattr(instance, 'page') and get_attribute(instance.page, 'name')) or get_attribute(instance, 'name') or ''
|
return (
|
||||||
|
get_attribute(instance, 'title') or (hasattr(instance, 'page') and get_attribute(instance.page, 'name')) or get_attribute(instance, 'name') or ''
|
||||||
|
).title()
|
||||||
|
|
||||||
|
|
||||||
def get_html_title(instance):
|
def get_html_title(instance):
|
||||||
return get_attribute(instance, 'html_title') or get_title(instance)
|
return (
|
||||||
|
get_attribute(instance, 'html_title') or get_title(instance)
|
||||||
|
).title()
|
||||||
|
|
||||||
|
|
||||||
def get_image(instance):
|
def get_image(instance):
|
||||||
|
|
|
@ -10,7 +10,7 @@ Student Robotics is the the place where my development knowledge really started
|
||||||
More information can be found on [their website](https://studentrobotics.org).
|
More information can be found on [their website](https://studentrobotics.org).
|
||||||
|
|
||||||
## My Entries
|
## My Entries
|
||||||
Being at college for 2 years, meant I was able to enter 2 years of competitions, SR14, and SR15. We were encouraged to gain an online presence for our team, so I created a website for both years. Unfortunately due to account inactivity, and me changing my website 3 times since, The original pages have been lost, however a large amount of the content the content still remains.
|
Being at college for 2 years, meant I was able to enter 2 years of competitions, [SR14](2014), and [SR15](2015). We were encouraged to gain an online presence for our team, so I created a website for both years. Unfortunately due to account inactivity, and me changing my website 3 times since, The original pages have been lost, however a large amount of the content the content still remains.
|
||||||
|
|
||||||
|
|
||||||
<div class="row outer-gutter">
|
<div class="row outer-gutter">
|
||||||
|
|
Reference in a new issue