Josh stuff
parent
bd57ab7893
commit
e46e7b5ece
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue