+ {{ post.title }} +
++ {{ post.published_at|date:"d E Y" }} +
++ {% if post.excerpt %} + {{ post.excerpt|linebreaks }} + {% else %} + {{ post.content|striptags|truncatewords:30 }} + {% endif %} +
+ Читать далее → +diff --git a/etpgrf_site/blog/templates/blog/page_detail.html b/etpgrf_site/blog/templates/blog/page_detail.html new file mode 100644 index 0000000..d4dbca0 --- /dev/null +++ b/etpgrf_site/blog/templates/blog/page_detail.html @@ -0,0 +1,49 @@ +{% extends 'typograph/base.html' %} +{% load static %} + +{% block title %}{{ page.seo_title|default:page.title }} — ETPGRF{% endblock %} +{% block description %}{{ page.seo_description|default:page.content|striptags|truncatechars:160 }}{% endblock %} +{% block og_title %}{{ page.seo_title|default:page.title }}{% endblock %} +{% block og_description %}{{ page.seo_description|default:page.content|striptags|truncatechars:160 }}{% endblock %} +{% block og_image %}{% if page.image %}{{ request.scheme }}://{{ request.get_host }}{{ page.image.url }}{% else %}{{ request.scheme }}://{{ request.get_host }}{% static 'img/etpgrf-logo-for-fb-vk-x.gif' %}{% endif %}{% endblock %} +{% block twitter_title %}{{ page.seo_title|default:page.title }}{% endblock %} +{% block twitter_description %}{{ page.seo_description|default:page.content|striptags|truncatechars:160 }}{% endblock %} +{% block twitter_image %}{% if page.image %}{{ request.scheme }}://{{ request.get_host }}{{ page.image.url }}{% else %}{{ request.scheme }}://{{ request.get_host }}{% static 'img/etpgrf-logo-for-fb-vk-x.gif' %}{% endif %}{% endblock %} + +{% block content %} +
+ + {{ page.published_at|date:"d.M.Y"|lower }} + +
+
+ {% if post.image %}
+
+ {% else %}
+
+ {% endif %}
+
+ + {{ post.published_at|date:"d.M.Y"|lower }} + +
+
+ {% if post.image %}
+
+ {% else %}
+
+ {% endif %}
+
+ {{ post.excerpt|linebreaksbr }} +
+ {% endif %} + ++ {{ post.published_at|date:"d E Y" }} +
++ {% if post.excerpt %} + {{ post.excerpt|linebreaks }} + {% else %} + {{ post.content|striptags|truncatewords:30 }} + {% endif %} +
+ Читать далее → +Пока нет записей.
+ {% endfor %} + + {# Пагинация #} + {% if page_obj.has_other_pages %} + + {% endif %} +