pelican-clean-blog/templates/index.html

80 lines
3.2 KiB
HTML
Raw Permalink Normal View History

2014-12-10 17:17:48 +00:00
{% extends "base.html" %}
{% block header %}
<!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
2014-12-10 17:43:49 +00:00
{% if HEADER_COVER %}
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ HEADER_COVER }}')">
{% elif HEADER_COLOR %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
2014-12-10 17:43:49 +00:00
{% else %}
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg')">
{% endif %}
2014-12-10 17:17:48 +00:00
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="page-heading">
<h1>{{ SITENAME }}</h1>
{% if SITESUBTITLE %}
<hr class="small">
<span class="subheading">{{ SITESUBTITLE }}</span>
{% endif %}
2016-05-21 09:24:49 +00:00
{% if SOCIAL and SHOW_SOCIAL_ON_INDEX_PAGE_HEADER %}
<ul class="list-inline text-center">
{% for name,link in SOCIAL %}
<li>
<a href="{{ link }}">
<span class="fa-stack fa-lg">
<i class="fa fa-{{ name|lower }} fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
2014-12-10 17:17:48 +00:00
</div>
</div>
</div>
</div>
</header>
{% endblock header %}
{% block content %}
{% if INTRO_CONTENT %}
<div class="row intro-content">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ INTRO_CONTENT }}
</div>
</div>
{% endif %}
2014-12-10 17:17:48 +00:00
{% for article in articles_page.object_list %}
<div class="post-preview">
2019-04-23 17:38:31 +00:00
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="{{ gettext('Permalink to') }} {{ article.title|striptags }}">
2014-12-10 17:17:48 +00:00
<h2 class="post-title">
{{ article.title }}
</h2>
</a>
{% if SHOW_FULL_ARTICLE %}
{{ article.content }}
{% else %}
<p class="article-summary">
{% if article.has_summary %}
{{ article.summary }}
{% elif article.summary %}
{{ article.summary|striptags|truncate(140) }}
{% endif %}
</p>
2014-12-10 17:53:48 +00:00
{% endif %}
2019-04-23 17:38:31 +00:00
<p class="post-meta">{{ gettext('Posted by') }}
2014-12-10 17:17:48 +00:00
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
2019-04-23 17:38:31 +00:00
{{ gettext('on') }} {{ article.locale_date }}
2014-12-10 17:17:48 +00:00
</p>
{% include 'comments.html' %}
2014-12-10 17:17:48 +00:00
</div>
{% endfor %}
{% include "pagination.html" %}
2019-04-23 17:38:31 +00:00
{% endblock content %}