aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random2/templates/article.html
blob: 9d24a37a22e4828f06fff6bd7b4d0782e6b58ed8 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{%- if article.lang %}{% set DEFAULT_LANG = article.lang %}{% endif -%}
{% extends "base.html" %}

{% block headers %}
    {{ super() }}
    <meta name="author"   content="{{ article.author or DEFAULT_AUTHOR }}" />
    <meta name="keywords" content="{{ article.tags|join(', ') }}" />
    <link rel="stylesheet" media="not print" type="text/css" href="{{ SITEURL }}/theme/css/pygments.css" /> 
{% endblock %}

{% block title %}{{ article.title }} — {{ super() }}{% endblock %}

{%- block content %}
      <header class="post-header">
        <h1>
          <a rel="bookmark"
             href="{{ SITEURL }}/{{ article.url }}"
             title="Lien permanent vers «{{ article.title|striptags }}»">
             {{ article.title }}
          </a>
        </h1>
        <div class="meta">
          {% include "includes/article_meta.html" %}
        </div>
      </header>
      <div class="post-content"> 
        {{ article.content}}
      </div>
      <footer class="post-footer">
        <div class="meta">
            Posté dans «<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>» 
            par <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author}}</a><br />
            Mots-clés: {% for tag in article.tags %} #<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}
        </div>
      </footer>
      {% if DISQUS_SITENAME %}
      <hr />
      <div id="disqus_thread"></div>
        <script type="text/javascript">
            /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
            var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname

            /* * * DON'T EDIT BELOW THIS LINE * * */
            (function() {
                var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
                dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
            })();
        </script>
        <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
        <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
      {% endif %}
{% endblock content -%}