Adding
parent
5773f84e9f
commit
671e59ae7f
|
@ -18,8 +18,11 @@
|
|||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'snipt-net';
|
||||
var disqus_developer = 1;
|
||||
{% if debug %}
|
||||
var disqus_developer = 1;
|
||||
{% endif %}
|
||||
var disqus_url = ('https:' == document.location.protocol ? 'https' : 'http') + '://snipt.net{{ request.path }}';
|
||||
var disqus_title = '{{ snipt.title }}';
|
||||
var disqus_identifier = {{ snipt.id }};
|
||||
|
||||
(function() {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<div class="container">
|
||||
<header>
|
||||
<h2>{{ snipt.lexer_name }}</h2>
|
||||
<h1><a href="{{ snipt.get_absolute_url }}">{{ snipt.title }} fdsauif odpsaufiodpsa ufiopdsa ufiopds uaiopfu dsaiopf udiospa ufiopdsau fiopdsa</a></h1>
|
||||
<h1><a href="{{ snipt.get_absolute_url }}">{{ snipt.title }}</a></h1>
|
||||
</header>
|
||||
<section class="code {% if request.GET.style %}{{ request.GET.style }}{% else %}autumn{% endif %}">
|
||||
{{ snipt.get_stylized|safe }}
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
xmlns:dsq="http://www.disqus.com/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:wp="http://wordpress.org/export/1.0/"
|
||||
>
|
||||
<channel>
|
||||
{% for c in comments %}<item>
|
||||
<title>{{ c.snipt.title }}</title>
|
||||
<link>http://snipt.net{{ c.snipt.get_absolute_url }}</link>
|
||||
<content:encoded><![CDATA[]]></content:encoded>
|
||||
<dsq:thread_identifier>{{ c.snipt.id }}</dsq:thread_identifier>
|
||||
<wp:post_date_gmt>{{ c.snipt.created|date:"Y-m-d H:i:s" }}</wp:post_date_gmt>
|
||||
<wp:comment_status>open</wp:comment_status>
|
||||
<wp:comment>
|
||||
<dsq:remote>
|
||||
<dsq:id></dsq:id>
|
||||
<dsq:avatar></dsq:avatar>
|
||||
</dsq:remote>
|
||||
<wp:comment_id>{{ c.id }}</wp:comment_id>
|
||||
{% if c.user.username == 'nick' %}
|
||||
<wp:comment_author>Nick Sergeant</wp:comment_author>
|
||||
{% else %}
|
||||
<wp:comment_author>{{ c.user.username }}</wp:comment_author>
|
||||
{% endif %}
|
||||
<wp:comment_author_email>{{ c.user.email }}</wp:comment_author_email>
|
||||
<wp:comment_author_url>http://snipt.net/{{ c.user.username }}/</wp:comment_author_url>
|
||||
<wp:comment_author_IP></wp:comment_author_IP>
|
||||
<wp:comment_date_gmt>{{ c.snipt.created|date:"Y-m-d H:i:s" }}</wp:comment_date_gmt>
|
||||
<wp:comment_content><![CDATA[{{ c.comment|safe }}]]></wp:comment_content>
|
||||
<wp:comment_approved>1</wp:comment_approved>
|
||||
<wp:comment_parent></wp:comment_parent>
|
||||
</wp:comment>
|
||||
</item>{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
Loading…
Reference in New Issue