aboutsummaryrefslogtreecommitdiffstats
path: root/templates/aggregator/post_content.html
blob: e47de9377a0e1367ae1e6db8a755827cca1bf3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<article class="post {{ post.feed.name|slugify }}">
  <header>
    <hgroup>
      <h1>
        <a href="/post/{{ post.pk }}/">
          <img src="{{ post.feed.get_favicon_url }}" />
        </a>
        <a href="/post/{{ post.pk }}/">
          {% if post.feed.uses_title %}
            {{ post.title }}
          {% else %}
            {{ post.updated }}
          {% endif %}
        </a>
      </h1>
      <h2 class="postsubtitle">
        Via
        <a href="{{ post.feed.base_url }}">{{ post.feed.name }}</a>
        (<a href="{{ post.feed.get_profile_url }}">profile</a>,
        <a href="{{ post.remote_url }}">origin</a>)
      </h2>
    </hgroup>
  </header>

  <div class="postcontent">
    {% autoescape off %}
      {% if post.feed.br2nl %}
        {{ post.body|linebreaks }}
      {% else %}
        {{ post.body }}
      {% endif %}
    {% endautoescape %}
  </div>
</article>