diff options
-rw-r--r-- | app/resume/models.py | 5 | ||||
-rw-r--r-- | design/sass/_figments.scss | 2 | ||||
-rw-r--r-- | design/templates/archives/resume-pubs-by-pub.html | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/app/resume/models.py b/app/resume/models.py index 95c66f7..38f041a 100644 --- a/app/resume/models.py +++ b/app/resume/models.py @@ -19,6 +19,11 @@ class Publisher(models.Model): def __str__(self): return self.name + def save(self, *args, **kwargs): + if self.body_markdown: + self.body_html = markdown_to_html(self.body_markdown) + super(Publisher, self).save() + class PubItem(models.Model): title = models.CharField(max_length=200) diff --git a/design/sass/_figments.scss b/design/sass/_figments.scss index b7f54a2..e834469 100644 --- a/design/sass/_figments.scss +++ b/design/sass/_figments.scss @@ -34,7 +34,7 @@ @include fontsize(18); } } -.figments hr { +.figments hr, .resume hr { @include constrain_narrow; border: 0; margin-top: 2em; diff --git a/design/templates/archives/resume-pubs-by-pub.html b/design/templates/archives/resume-pubs-by-pub.html index 2313b48..8a3cfb8 100644 --- a/design/templates/archives/resume-pubs-by-pub.html +++ b/design/templates/archives/resume-pubs-by-pub.html @@ -15,6 +15,8 @@ </ul> <main role="main"> <h1 class="entry-title publisher">Stories published in {{publisher}}</h1> + {{ publisher.body_html|safe|widont|smartypants}} + <hr /> <ul class="publications-list">{% for object in object_list %} <li class="pub-title"><h3><a href="{{object.get_absolute_url}}">{{object.title|amp|smartypants|widont|safe}}</a></h3> <time class="dt-published published dt-updated" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> |