diff sat_templates/templates/default/blog/articles.html @ 166:178f55b825b7

small refactoring/redesign, better BEM integration: - blog has been redesigned, and almost all blog CSS has been made generic and moved to main styles.css file. - better noscript handling, dynamic elements are created using "magic" classes (dom_update.js) - using better icons for older/newer messages - better state handling, classes now use "state_XXX" - more classes now use BEM convention - menu labels have been moved to a separate template (components/menu_labels.html), so it can be overriden easily by other sites - better styles.css organisation
author Goffi <goffi@goffi.org>
date Wed, 03 Oct 2018 21:00:24 +0200
parents e9f0a4215e46
children d586ea13cfed
line wrap: on
line diff
--- a/sat_templates/templates/default/blog/articles.html	Fri Sep 14 19:49:15 2018 +0200
+++ b/sat_templates/templates/default/blog/articles.html	Wed Oct 03 21:00:24 2018 +0200
@@ -1,6 +1,7 @@
 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
 {% set single = items|length == 1 %}
 {% set dates_format='relative' if single else 'short' %}
+{% import 'components/avatar.html' as avatar with context %}
 {% import 'blog/macros.html' as blog with context %}
 {% import 'input/navigation.html' as navigation with context %}
 
@@ -18,6 +19,7 @@
 {%- endblock title -%}
 
 {% block body %}
+{{ icon_defs('angle-double-left', 'angle-double-right') }}
 {% if items %}
     <div id="blog_items">
         {{ blog.show_items(items, expanded=single) }}