summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/resume/views.py8
-rw-r--r--design/sass/_resume.scss41
-rw-r--r--design/templates/archives/resume-pubs.html9
-rw-r--r--design/templates/archives/resume.html2
4 files changed, 56 insertions, 4 deletions
diff --git a/app/resume/views.py b/app/resume/views.py
index bdfd01b..563ceaf 100644
--- a/app/resume/views.py
+++ b/app/resume/views.py
@@ -2,7 +2,7 @@ from django.views.generic.detail import DetailView
from django.views.generic.base import TemplateView
from utils.views import PaginatedListView
-from .models import PubItem
+from .models import PubItem, Publisher
from pages.models import Page
@@ -12,6 +12,12 @@ class PublisherListView(PaginatedListView):
def get_queryset(self):
return PubItem.objects.all()
+ def get_context_data(self, **kwargs):
+ # Call the base implementation first to get a context
+ context = super(PublisherListView, self).get_context_data(**kwargs)
+ context['pub_list'] = Publisher.objects.all()
+ return context
+
class PubItemDetailView(DetailView):
model = PubItem
diff --git a/design/sass/_resume.scss b/design/sass/_resume.scss
index 70b7e99..1bd9db2 100644
--- a/design/sass/_resume.scss
+++ b/design/sass/_resume.scss
@@ -101,3 +101,44 @@
font-family: sans-serif;
}
}
+.publications-list {
+ text-align: left;
+ @include constrain_narrow;
+ h2 {
+ @include smcaps;
+ @include fontsize(12);
+ font-weight: 400;
+ text-align: left;
+ border-bottom: 1px dotted #333;
+ margin-bottom: 2em;
+ &:first-of-type {
+ margin-top: 3em;
+ }
+ }
+ h3, time {
+ display: inline;
+ }
+ time:before {
+ content: "\00a0 \00a0"
+ }
+}
+
+.pub-title a {
+ color: $brown;
+ text-decoration: none;
+ font-weight: 400;
+}
+.resume h6 {
+ @include constrain_narrow;
+ text-align: left;
+ margin-bottom: 0.5em;
+ font-weight: 400;
+ @include fontsize(12);
+}
+.toc {
+ @include constrain_narrow;
+ text-align: left;
+ a {
+ color: $brown;
+ }
+}
diff --git a/design/templates/archives/resume-pubs.html b/design/templates/archives/resume-pubs.html
index 7569a8f..daed46f 100644
--- a/design/templates/archives/resume-pubs.html
+++ b/design/templates/archives/resume-pubs.html
@@ -14,11 +14,16 @@
</ul>
<main role="main">
<h1 class="hide">Publications</h1>
+ <h6>By Publication</h6>
+ <nav class="toc"><ul>{% for publisher in pub_list %}
+ <li><a href="#{{publisher.name|slugify}}">{{publisher.name}}</a></li>{%endfor%}
+ </ul></nav>
{% regroup object_list by publisher.name as pub_list %}{% for pub in pub_list %}
<ul class="publications-list">
- <li><h2>{{ pub.grouper }}</h2></li>
+ <li><h2 id="{{pub.grouper|slugify}}">{{ pub.grouper }}</h2></li>
<ul>{% for object in pub.list %}
- <li class=""><h3><a href="{{object.get_absolute_url}}">{{object.title|amp|smartypants|widont|safe}}</a></h3>
+ <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>
</li>{% endfor %}
</ul>{% endfor %}
</ul>
diff --git a/design/templates/archives/resume.html b/design/templates/archives/resume.html
index 40ede8c..c173460 100644
--- a/design/templates/archives/resume.html
+++ b/design/templates/archives/resume.html
@@ -22,7 +22,7 @@
<p>The personal section of my site, which is primarily about my travels can be found at <a href="https://luxagraf.net/">the root of this URL</a>.</p>
-<p>If you&#8217;d like me to write, edit, develop or consult on a website, you can contact me at sng @ luxagraf.net. </p>
+<p>If you&#8217;d like me to write, edit, develop or consult on a website, you can contact me at sng @ luxagraf.net. For consulting on writing or web development projects, please get in touch via my <a href="https://clarity.fm/scottgilbertson">clarity.fm profile</a>.</p>
<p>Thank you for visiting.</p>