tempaltes: Added blog templates.
An override of the djangocms_blog templates. Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
81e108a011
commit
2ca57ed4d1
5 changed files with 149 additions and 0 deletions
32
templates/djangocms_blog/includes/blog_item.html
Normal file
32
templates/djangocms_blog/includes/blog_item.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{% load i18n thumbnail cms_tags %}
|
||||
{% load url from future %}
|
||||
|
||||
<div class="post-preview">
|
||||
<a href=" {{ post.get_absolute_url }} ">
|
||||
<h2 class="post-title">
|
||||
{{ post.title }}
|
||||
</h2>
|
||||
<h3 class="post-subtitle">
|
||||
{% if not TRUNCWORDS_COUNT %}
|
||||
{% render_model post "abstract" %}
|
||||
{% else %}
|
||||
{% render_model post "abstract" "" "" 'truncatewords_html:TRUNCWORDS_COUNT' %}
|
||||
{% endif %}
|
||||
</h3>
|
||||
</a>
|
||||
<p class="post-meta">
|
||||
Posted
|
||||
{% if post.author %}
|
||||
by
|
||||
<a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">
|
||||
{% if post.author.get_full_name %}
|
||||
{{ post.author.get_full_name }}
|
||||
{% else %}
|
||||
{{ post.author }}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
on {{ post.date_published|date:"DATE_FORMAT" }}
|
||||
</p>
|
||||
</div>
|
||||
<hr>
|
||||
Loading…
Add table
Add a link
Reference in a new issue