Moving forward.
[wolnelektury.git] / src / catalogue / templates / catalogue / preview_ad_homepage.html
index e4f43cd..d319772 100644 (file)
@@ -1,23 +1,22 @@
 {% if book %}
-  <section class="l-section">
     <div class="p-homepage-prapremiera">
-      <div class="l-container">
         <h3>Prapremiera</h3>
         <div class="p-homepage-prapremiera__box">
-          <figure>
-            <a href="{{ book.get_absolute_url }}">
-              <img src="{{ book.cover_clean.url }}" alt="{{ book.pretty_title }}">
-            </a>
-          </figure>
-          <div class="p-homepage-prapremiera__box__content">
-            <strong>
+          <div class="p-homepage-prapremiera__box__item">
+            <figure>
+              <a href="{{ book.get_absolute_url }}">
+                <img src="{{ book.cover_clean.url }}" alt="{{ book.pretty_title }}">
+              </a>
+            </figure>
+            <div class="p-homepage-prapremiera__box__content">
               <h4>
                 {% for author in book.authors %}
                   <a href="{{ author.get_absolute_url }}">{{ author }}</a>
                 {% endfor %}
               </h4>
               <h3><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h3>
-              <p>{{ book.abstract|safe }}</p>
+              <p>{{ book.abstract|safe|truncatewords:20 }}</p>
+            </div>
           </div>
           <div class="p-homepage-prapremiera__box__donate">
             {% if accessible %}
@@ -28,7 +27,5 @@
             {% endif %}
           </div>
         </div>
-      </div>
     </div>
-  </section>
 {% endif %}