Portfolio

master
Nick Sergeant 2013-01-09 11:23:57 -05:00
parent 323ca17045
commit ab11888320
3 changed files with 19 additions and 16 deletions

View File

@ -82,8 +82,9 @@
<section class="module hire"> <section class="module hire">
<h1>Hire me</h1> <h1>Hire me</h1>
<p> <p>
I'm available for select freelance projects. I'm available for select freelance<br />
<a href="mailto:nick@nicksergeant.com">Email me</a>. projects. View my <a href="/portfolio/">work</a>, then<br />
<a href="mailto:nick@nicksergeant.com">email me</a>.
</p> </p>
</section> </section>
<section class="module projects"> <section class="module projects">

View File

@ -1,19 +1,21 @@
{% load snipt_tags typogrify_tags %} {% load snipt_tags typogrify_tags %}
<article class="group {% if detail %}detail{% endif %}"> <article class="group {% if detail %}detail{% endif %}">
<div class="gutter"> {% if snipt.title != 'Portfolio' %}
<a href="{{ snipt.get_full_absolute_url }}" {% if detail %}class="detail"{% endif %}> <div class="gutter">
<time pubdate datetime="{{ snipt.publish_date|date:'c' }}"> <a href="{{ snipt.get_full_absolute_url }}" {% if detail %}class="detail"{% endif %}>
<span class="id"> <time pubdate datetime="{{ snipt.publish_date|date:'c' }}">
#{{ snipt.id }} <span class="id">
</span> #{{ snipt.id }}
<span class="mon-day"> </span>
{{ snipt.publish_date|date:'M' }} {{ snipt.publish_date|date:'j' }} <span class="mon-day">
</span> {{ snipt.publish_date|date:'M' }} {{ snipt.publish_date|date:'j' }}
<span class="year">{{ snipt.publish_date|date:'Y' }}</span> </span>
</time> <span class="year">{{ snipt.publish_date|date:'Y' }}</span>
</a> </time>
</div> </a>
</div>
{% endif %}
<div class="content-inner"> <div class="content-inner">
<h1><a href="{{ snipt.get_full_absolute_url }}">{% firstof snipt.title|typogrify 'Untitled' %}</a></h1> <h1><a href="{{ snipt.get_full_absolute_url }}">{% firstof snipt.title|typogrify 'Untitled' %}</a></h1>
<div class="post-content autumn"> <div class="post-content autumn">

View File

@ -17,7 +17,7 @@ def blog_list(request, username_or_custom_slug=None):
blog_post=True, blog_post=True,
public=True, public=True,
publish_date__lte=datetime.datetime.now() publish_date__lte=datetime.datetime.now()
).order_by('-publish_date').exclude(title__iexact='Homepage') ).order_by('-publish_date').exclude(title__iexact='Homepage').exclude(title__iexact='Portfolio')
normal_snipts = Snipt.objects.filter(blog_post=False, user=request.blog_user, public=True).order_by('-created') normal_snipts = Snipt.objects.filter(blog_post=False, user=request.blog_user, public=True).order_by('-created')
normal_snipts = normal_snipts.exclude(title__in=['']) normal_snipts = normal_snipts.exclude(title__in=[''])