Adapt template to pelican
This commit is contained in:
47
templates/index.html
Executable file
47
templates/index.html
Executable file
@ -0,0 +1,47 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}
|
||||
<!-- Page Header -->
|
||||
<!-- Set your background image for this header on the line below. -->
|
||||
<header class="intro-header" style="background-image: url('{{ HEADER_COVER|default('static/images/home-bg.jpg') }}')">
|
||||
<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>
|
||||
<hr class="small">
|
||||
<span class="subheading">{{ SITESUBTITLE }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{% endblock header %}
|
||||
|
||||
{% block content %}
|
||||
{% for article in articles_page.object_list %}
|
||||
<div class="post-preview">
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
||||
<h2 class="post-title">
|
||||
{{ article.title }}
|
||||
</h2>
|
||||
{% if article.summary %}
|
||||
<h3 class="post-subtitle">
|
||||
{{ article.summary }}
|
||||
</h3>
|
||||
{% endif %}
|
||||
</a>
|
||||
<p class="post-meta">Posted by
|
||||
{% for author in article.authors %}
|
||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
||||
{% endfor %}
|
||||
on {{ article.locale_date }}
|
||||
</p>
|
||||
</div>
|
||||
<hr>
|
||||
{% endfor %}
|
||||
|
||||
{% include "pagination.html" %}
|
||||
<hr>
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user