david / biologeek (http://biologeek.com/)

Source code of biologeek.com weblog under WTFPL.

Clone this repository (size: 252.7 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/biologeek
r88:858e010e7f75 72 loc 2.9 KB embed / history / annotate / raw /
{% extends "layout/base_unicol.html" %}
{% load tagging_tags discussion_tags comments biologeek_tags %}

{% block extra_head %}
    <link rel="meta" type="application/rdf+xml" title="SIOC" href="{{ post.get_data_url }}"/>
    <link rel="shortlink" href="http://bgk.me/p/{{ post.id }}"/>
{% endblock %}

{% block extra_body %}
    class="journal unicol" 
    typeof="sioctype:BlogPost" about="{{ post.get_complete_url }}"
{% endblock %}

{% block extra_page %}
    property="dc:title" content="{{ post }}"
    {#rel="sioc:has_container" href="http://www.biologeek.com"#}
{% endblock %}

{% block author %}
<cite rel="sioc:has_creator" about="{{ post.get_complete_url }}">
    <a href="http://david.larlet.fr" title="Accès au profil de David Larlet" rel="me" typeof="sioc:User">
        <span property="rdfs:label" rel="sioc:account_of" href="http://david.larlet.fr/foaf.rdf#DavidLarlet">David Larlet</span>
    </a>
</cite>
{% endblock %}

{% block title %}
{% tags_for_object post as tag_list %}
{{ post|safe }}, dans {% for tag in tag_list %}{{ tag.pretty|lower }}{% if not forloop.last %}, {% endif %}{% endfor %}
{% endblock %}
{% block info %}
    <h1 class="post-title bottom">{{ post }}</h1>
    <h3 class="quiet">
        {% tags_for_object post as tag_list %}
        Tag{{ tag_list|pluralize }} associé{{ tag_list|pluralize }} :
        <span rel="sioc:topic" typeof="skos:concept" about="{{ post.get_complete_url }}">
            {% for tag in tag_list %}<a href="/{{ tag }}/" title="Accès aux articles de la catégorie {{ tag.pretty }}" 
            rel="tag" property="skos:prefLabel" content="{{ tag.pretty }}">{{ tag.pretty }}</a>, {% endfor %}
        </span>
        posté le <span property="dcterms:created" content="{{ post.publication_date|date:"Y-m-d" }}"  datatype="xsd:date">
        {{ post.publication_date|date:"j" }}
        <a href="{% url archive_month post.publication_date.year,post.publication_date|date:"m" %}" 
        title="Accès aux archives pour {{ post.publication_date|date:"F Y"|lower }}" rel="archives"
        >{{ post.publication_date|date:"F Y"|lower }}</a></span>
    </h3>
{% endblock %}
{% block mainextra %} property="sioc:content"{% endblock %}
{% block main %}
<div class="post-chapo">
    {% if post.image %}
        <img src="{{ MEDIA_URL }}{{ post.image }}" alt="Logo associé au billet intitulé {{ post.title }}" class="vignette" />
    {% endif %}
    {{ post.summary_html|safe }}
</div>
{{ post.content_html|safe }}
{% endblock %}

{% block extra_content %}
	<div id="comments" class="main column span-16 prepend-4 append-4">
        {% get_comment_list for journal.post post.id as comment_list %}
        {% display_comment_list %}        
        <h2>Ajouter un commentaire</h2>
        {% get_comment_form for journal.post post.id as comment_form %}
        {% display_comment_form %}
    </div>
    <div id="contextual">
        <hr />
        <h3>Billets contextuels</h3>
    	{% display_contextual_posts %}
    	<hr />
    </div>
{% endblock %}