summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-01-07 11:09:46 -0500
committerluxagraf <sng@luxagraf.net>2016-01-07 11:09:46 -0500
commit12adad15009c2c56f3612a4afd3c4a2512cb303f (patch)
treeca96e6191c007d55c98a491e10c4c2589a030639
parent2d5330c638f2413610b09f2b853a6e5320d103d9 (diff)
added a little intro to each resume pub section explaining why I don't
have all the links to every story
-rw-r--r--app/resume/models.py5
-rw-r--r--design/sass/_figments.scss2
-rw-r--r--design/templates/archives/resume-pubs-by-pub.html2
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>