Trivial: organize templates
parent
fe1626735f
commit
96409841d8
|
@ -24,13 +24,13 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{% include "header.html" %}
|
{% include "include/header.html" %}
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include "footer.html" %}
|
{% include "include/footer.html" %}
|
||||||
|
|
||||||
<script src="{{ SITEURL }}/theme/js/libs/jquery.min.js"></script>
|
<script src="{{ SITEURL }}/theme/js/libs/jquery.min.js"></script>
|
||||||
<script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
|
<script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
<div class="post mini-post">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">
|
|
||||||
<p class="post-date">
|
|
||||||
<a class="text-muted" href="/{{ article.url }}" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</a>
|
|
||||||
</p>
|
|
||||||
<p class="post-category">
|
|
||||||
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
|
||||||
</p>
|
|
||||||
{% if article.author and SHOW_ARTICLE_AUTHOR %}
|
|
||||||
<address class="post-author">
|
|
||||||
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
|
|
||||||
</address>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="col-md-8">
|
|
||||||
<h2 class="post-title">
|
|
||||||
<a href="/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
|
||||||
</h2>
|
|
||||||
<div class="post-content">
|
|
||||||
{{ article.content|striptags|truncate(256) }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -6,9 +6,33 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div>
|
<div>
|
||||||
{% for article in articles_page.object_list %}
|
{% for article in articles_page.object_list %}
|
||||||
{% include "include/article_list.html" %}
|
<div class="post mini-post">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<p class="post-date">
|
||||||
|
<a class="text-muted" href="/{{ article.url }}" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</a>
|
||||||
|
</p>
|
||||||
|
<p class="post-category">
|
||||||
|
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||||
|
</p>
|
||||||
|
{% if article.author and SHOW_ARTICLE_AUTHOR %}
|
||||||
|
<address class="post-author">
|
||||||
|
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
|
||||||
|
</address>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<h2 class="post-title">
|
||||||
|
<a href="/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
||||||
|
</h2>
|
||||||
|
<div class="post-content">
|
||||||
|
{{ article.content|striptags|truncate(256) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% include 'pagination.html' %}
|
{% include 'include/pagination.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue