Josh stuff

master
Nick Sergeant 2012-07-23 13:02:39 -04:00
parent bd57ab7893
commit e46e7b5ece
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,12 @@
<description>Nick Sergeant</description>
<title>Nick Sergeant</title>
<link>http://nicksergeant.com/?rss</link>
{% elif request.blog_user.username == 'joshhudnall' %}
<atom:link href="http://snipt.joshhudnall.com/?rss" rel="self" type="application/rss+xml" />
<description>Josh Hudnall</description>
<title>Josh Hudnall</title>
<link>http://snipt.joshhudnall.com/?rss</link>
{% else %}
{% elif request.blog_user.username == 'blog' %}
<atom:link href="https://blog.snipt.net/?rss" rel="self" type="application/rss+xml" />
<description>Snipt Blog</description>

View File

@ -107,6 +107,8 @@ class Snipt(models.Model):
if self.blog_post:
if self.user.id == 3:
return 'http://nicksergeant.com/{}/'.format(self.slug)
elif self.user.id == 10325:
return 'http://snipt.joshhudnall.com/{}/'.format(self.slug)
else:
return 'https://{}.snipt.net/{}/'.format(self.user.username.replace('_', '-'), self.slug)