Files
pelican-themes/pelican-bootstrap3/templates/article.html
2014-08-30 19:27:38 +02:00

117 lines
5.9 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 %}
<td>
<table class="layout">
<tr class="layout">
<td class="layout" colspan="2">&nbsp;
{% if article.gallerycaptions.get(image) %}
<strong>{{ article.gallerycaptions.get(image) }}</strong>
{% endif %}
</td>
</tr>
<tr class="layout">
<td class="layout">
<a class="{{ article.album }} cboxElement" href="{{ SITEURL }}/images/gallery/{{ article.album }}/{{ image }}"
{% if article.gallerycaptions.get(image) %}title="{{ article.gallerycaptions.get(image) }}"{% endif %}>
<img src="{{ SITEURL }}/images/thumbs/{{ article.album }}/{{ image }}">
</a>
</td>
</tr>
<tr class="layout">
{% if article.galleryexif and article.galleryexif.get(image) %}
<td class="layout">
<table class="exif_info">
{% if article.galleryexif.get(image).get("Model") %}
<tr><th colspan="4">{{article.galleryexif.get(image).get("Model")}}</th></tr>
{% endif %}
{% if article.galleryexif.get(image).get("LensModel") %}
<tr><th colspan="4">{{article.galleryexif.get(image).get("LensModel")}}</th></tr>
{% endif %}
<tr>
{% if article.galleryexif.get(image).get("ISOSpeedRatings") %}
<td>{{article.galleryexif.get(image).get("ISOSpeedRatings")}}</td>
{% endif %}
{% if article.galleryexif.get(image).get("FocalLength") %}
<td>{{article.galleryexif.get(image).get("FocalLength")}}mm</td>
{% endif %}
{% if article.galleryexif.get(image).get("FNumber") %}
<td>f/{{article.galleryexif.get(image).get("FNumber")}}</td>
{% endif %}
{% if article.galleryexif.get(image).get("ExposureTime") %}
<td>{{article.galleryexif.get(image).get("ExposureTime")}}</td>
{% endif %}
</tr>
</table>
</td>
{% endif %}
</tr>
{% if article.gallerycomments.get(image) %}
<tr>
<td colspan="2">{{ article.gallerycomments.get(image) }}</td>
</tr>
{% endif %}
</table>
</td>
{% if (loop.index % GALLERY_IMG_PER_ROW) == 0 %}
</tr>
<tr>
{% endif %}
{% endfor %}
{% if (article.galleryimages.__len__() % GALLERY_IMG_PER_ROW) != 0 %}
<td colspan="{{GALLERY_IMG_PER_ROW - (article.galleryimages.__len__() % GALLERY_IMG_PER_ROW)}}" />
{% endif %}
</tr>
</table>
{% endif %}
</div>
<!-- /.entry-content -->
{% include 'includes/related-posts.html' %}
{% include 'includes/addthis.html' %}
{% include 'includes/comments.html' %}
</article>
</section>
{% endblock %}