Let's change the way in which bylines are generated.
I would suggest two methods on the "Content" object — one for generating bylines with links to staffers' pages, the other for just flat text.
Additionally, doing a render_byline and render_byline_html methods this way could negate the need for any if statements in the templates. We could also add a DEFAULT_BYLINE setting so that that boilerplate need only be written in one place.
Let's change the way in which bylines are generated.
I would suggest two methods on the "Content" object — one for generating bylines with links to staffers' pages, the other for just flat text.
Additionally, doing a render_byline and render_byline_html methods this way could negate the need for any if statements in the templates. We could also add a DEFAULT_BYLINE setting so that that boilerplate need only be written in one place.