Files
pelican-themes/pelican-bootstrap3/templates/article.html

67 lines
2.8 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ article.title|striptags }} - {{ SITENAME }}{% endblock %}
{% block breadcrumbs %}
{% if DISPLAY_BREADCRUMBS %}
{% if DISPLAY_CATEGORY_IN_BREADCRUMBS %}
<ol class="breadcrumb">
<li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
<li><a href="{{ SITEURL }}/{{ article.category.url }}" title="{{ article.category }}">{{ article.category }}</a></li>
<li class="active">{{ article.title }}</li>
</ol>
{% else %}
<ol class="breadcrumb">
<li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
<li class="active">{{ article.title }}</li>
</ol>
{% endif %}
{% endif %}
{% endblock %}
{% block content %}
<section id="content">
<article>
<header class="page-header">
<h1>
<a href="{{ SITEURL }}/{{ article.url }}"
rel="bookmark"
title="Permalink to {{ article.title|striptags }}">
{{ article.title }}
</a>
</h1>
</header>
<div class="entry-content">
<div class="panel">
<div class="panel-body">
{% include "includes/article_info.html" %}
</div>
</div>
{{ article.content }}
{% if article.album %}
<table class="gallery_table">
<tr>
{% for image in article.galleryimages %}
{% if article.gallerycaptions.get(image) %}
<td><a class="{{ article.album }} cboxElement" href="{{ SITEURL }}/images/gallery/{{ article.album }}/{{ image }}" title="{{ article.gallerycaptions.get(image) }}"><img src="{{ SITEURL }}/images/thumbs/{{ article.album }}/{{ image }}"></a><br />{{ article.gallerycaptions.get(image) }}</td>
{% else %}
<td><a class="{{ article.album }} cboxElement" href="{{ SITEURL }}/images/gallery/{{ article.album }}/{{ image }}"><img src="{{ SITEURL }}/images/thumbs/{{ article.album }}/{{ image }}"></a></td>
{% endif %}
{% if (loop.index % GALLERY_IMG_PER_ROW) == 0 %}
</tr>
<tr>
{% endif %}
{% endfor %}
</tr>
</table>
{% endif %}
</div>
<!-- /.entry-content -->
{% include 'includes/related-posts.html' %}
{% include 'includes/addthis.html' %}
{% include 'includes/comments.html' %}
</article>
</section>
{% endblock %}