Day 10 Dev Notes
More refactoring again, renaming content
to post
in various part of the code. I also made a couple of small functional changes:
- Added a
author_display_name
property to the Post model. All this does right now is show the first name if it's set, otherwise it shows the username, but this could be more configurable in the future. - I move the Markdown extensions that are loaded, into the settings file as a constant called
MARKDOWN_EXTENSIONS
. I may use this to help decide whether to load the Pygments CSS file since that's only needed if thecodehilite
extension is used. But that's something to think about another day, since there are some other concerns with making this too configurable.