setup the basic thing atleast
This commit is contained in:
60
themes/anatole-zola/templates/index.html
Normal file
60
themes/anatole-zola/templates/index.html
Normal file
@@ -0,0 +1,60 @@
|
||||
{% extends "basic.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% for page in paginator.pages %}
|
||||
<section class="post animated fadeInDown">
|
||||
<div class="post-title">
|
||||
<h3><a href="{{ page.permalink }}">{{ page.title }}</a></h3>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<p>
|
||||
{% if page.extra.summary %}
|
||||
{{ page.extra.summary | safe | striptags }}
|
||||
{% else %}
|
||||
{{ page.content | safe | striptags | truncate(length=100) }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="post-footer">
|
||||
<div class="meta">
|
||||
<div class="info">
|
||||
{% if page.date %}
|
||||
<i class="far fa-sun"></i>
|
||||
<span class="date">
|
||||
{{ page.date | date(format=trans(key="date_format", lang=lang)) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if config.extra.comment %}
|
||||
<i class="far fa-comments"></i>
|
||||
<a href="{{ page.permalink }}#comments">Comments</a>
|
||||
{% endif %}
|
||||
{% if page.taxonomies.tags %}
|
||||
<i class="fas fa-tags"></i>
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<a class="tag" href="{{ get_taxonomy_url(kind="tags", name=tag, lang=page.lang) | safe }}"> {{tag}}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
<div class="pagination">
|
||||
<ul class="clearfix">
|
||||
{% if paginator.next %}
|
||||
<li class="next pagbuttons">
|
||||
<a class="btn" role="navigation" href="{{ paginator.next }}" aria-label="{{ trans(key="next_page", lang=lang) }}">
|
||||
{{ trans(key="next_page", lang=lang) }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if paginator.previous %}
|
||||
<li class="pre pagbuttons">
|
||||
<a class="btn" role="navigation" href="{{ paginator.previous }}" aria-label="{{ trans(key="last_page", lang=lang) }}">
|
||||
{{ trans(key="last_page", lang=lang) }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user