123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- {% extends 'base.html' %}
- {% block title %}
- {{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %} · {{ super() }}
- {% endblock title %}
- {% block head_description %}
- {% if article.summary %}
- {{ article.summary|striptags|e }}
- {% endif %}
- {% endblock head_description %}
- {% block meta_tags_in_head %}
- {{ super() }}
- {% if article.tags or article.category or article.keywords %}
- <meta name="keywords" content="{{ [article.tags|join(', '), article.category, article.keywords]|join(', ') }}" />
- {% endif %}
- {% from '_includes/smo_metadata.html' import smo_metadata with context %}
- {{ smo_metadata(article) }}
- {% endblock meta_tags_in_head %}
- {% block content %}
- <article>
- <div class="row">
- <header class="page-header col-md-10 col-md-offset-2 col-lg-offset-1 col-lg-11">
- <h1><a href="{{ SITEURL }}/{{ article.url }}"> {{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a></h1>
- </header>
- </div>
- <div class="row">
- <div class="col-md-8 col-md-offset-2 col-lg-10 col-lg-offset-1 article-content">
- {% import '_includes/translations.html' as translations with context %}
- {{ translations.translations_for(article) }}
- {{ article.content }}
- {% from '_includes/share_links.html' import share_links with context %}
- {{ share_links(article) }}
- {% from '_includes/comments.html' import comments with context %}
- {{ comments(article) }}
- <hr/>
- {% include '_includes/related_posts.html' with context %}
- {% if article.prev_article or article.next_article %}
- <aside>
- <nav>
- <ul class="articles-timeline">
- {% if article.prev_article %}
- {% set ptitle = article.prev_article.title|striptags|e %}
- {% set pv_title = article.prev_article.title|striptags %}
- {%if article.prev_article.subtitle %}
- {% set pv_title = pv_title + ' ' + '<small>' + article.prev_article.subtitle|striptags + '</small>' %}
- {% set ptitle = ptitle + ' - ' + article.prev_article.subtitle|e %}
- {% endif %}
- <li class="previous-article">« <a href="{{ SITEURL }}/{{ article.prev_article.url }}" title="Previous: {{ ptitle }}">{{ pv_title }}</a></li>
- {% endif %}
- {% if article.next_article %}
- {% set ntitle = article.next_article.title|striptags|e %}
- {% set nv_title = article.next_article.title|striptags %}
- {%if article.next_article.subtitle %}
- {% set nv_title = nv_title + ' ' + '<small>' + article.next_article.subtitle|striptags + '</small>' %}
- {% set ntitle = ntitle + ' - ' + article.next_article.subtitle|e %}
- {% endif %}
- <li class="next-article"><a href="{{ SITEURL }}/{{ article.next_article.url }}" title="Next: {{ ntitle }}">{{ nv_title }}</a> »</li>
- {% endif %}
- </ul>
- </nav>
- </aside>
- {% endif %}
- </div>
- <section>
- <div class="col-md-2" style="float:right;font-size:0.9em;">
- <hr class="hidden-lg hidden-md" />
- {% if article.date %}
- <h4>Published</h4>
- {% set day = article.date.strftime('%d')|int %}
- <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%b') }} {{ day }} {{- article.date.strftime(', %Y') }}</time>
- {% endif %}
- {% include '_includes/last_updated.html' %}
- {% include '_includes/multi_parts.html' %}
- {% if article.category|trim|count > 0 %}
- <h4>Category</h4>
- <a class="category-link" href="{{ SITEURL }}/categories.html#{{ category.slug }}-ref">{{ article.category }}</a>
- {% endif %}
- {% if article.tags and article.tags[0]|trim|count > 0 %}
- <h4>Tags</h4>
- <ul class="list-of-tags tags-in-article">
- {% for tag in article.tags|sort %}
- <li><a href="{{ SITEURL }}/tags.html#{{ tag.slug }}-ref">{{ tag }}
- {% for aTag, tagged_articles in tags if aTag == tag %}
- <span>{{ tagged_articles|count }}</span>
- {% endfor %}</a></li>
- {% endfor %}
- </ul>
- {% endif %}
- {% include '_includes/social_links.html' %}
- {% include '_includes/mailchimp.html' %}
- </div>
- </section>
- </div>
- </article>
- {% endblock content %}
- {% block script %}
- {{ super() }}
- {% from '_includes/comments.html' import comments_script with context %}
- {{ comments_script(article) }}
- {% endblock script %}
|