templates/frontend/blog/index.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend/layout.html.twig' %}
  2. {% block title %} {{ seo_on_page.titulo }} {% endblock title %}
  3. {% block metas_titulo %}
  4.     <meta name="title" content="{{ seo_on_page.titulo }}"/>
  5.     <meta http-equiv="title" content="{{ seo_on_page.titulo }}"/>
  6.     <meta name="DC.Title" content="{{ seo_on_page.titulo }}"/>
  7. {% endblock metas_titulo %}
  8. {% block metas_descripcion %}
  9.     <meta name="description" content="{{ seo_on_page.descripcion }}"/>
  10.     <meta http-equiv="description" content="{{ seo_on_page.descripcion }}"/>
  11.     <meta name="DC.description" content="{{ seo_on_page.descripcion }}"/>
  12. {% endblock metas_descripcion %}
  13. {% block keywords %}
  14.     <meta name="Keywords" content="{{ seo_on_page.tags }}"/>
  15.     <meta http-equiv="keywords" content="{{ seo_on_page.tags }}"/>
  16.     <meta name="DC.keywords" content="{{ seo_on_page.tags }}"/>
  17. {% endblock keywords %}
  18. {% block datosestructurados %}
  19. {% endblock datosestructurados %}
  20. {% block stylesheetspecific %}
  21. {% endblock %}
  22. {% block page_body_class %}page-blog-leftbar{% endblock %}
  23. {% block header_nav_item_announcement_active_class %}active{% endblock %}
  24. {% block content %}
  25.     <div id="content" class="p-0 clearfix">
  26.         <div id="blog" class="container py-4 py-lg-6">
  27.             <hr class="hr-lg mt-0 mb-2 w-10 mx-auto hr-primary"/>
  28.             <h2 class="text-slab text-center text-uppercase mt-0 mb-5">
  29.                 Announcements
  30.             </h2>
  31.             <div class="row" data-animate="fadeIn" data-animate-delay="0.1">
  32.                 <div class="col-md-12 blog-roll blog-list">
  33.                     <!-- Blog post -->
  34.                     {% for item in anuncios %}
  35.                         <div class="row blog-post">
  36.                             <div class="col-md-12 pl-0">
  37.                                 <h4 class="title media-heading">
  38.                                     <a href="{{ url('blogdetalle',{url: item.url}) }}">{{ item.nombre }}</a>
  39.                                 </h4>
  40.                                 <p class="mb-0"><i class="fa fa-calendar"></i> {{ item.fecha }}</p>
  41.                                 <p class="mb-0"><i class="fa fa-user"></i> {{ item.autor }}</p>
  42.                             </div>
  43.                             <div class="row">
  44.                                 {% if item.imagen != '' %}
  45.                                     <div class="col-md-4 push-md-8">
  46.                                         <div class="blog-media">
  47.                                             <a href="javascript:;">
  48.                                                 <img src="{{ item.imagen }}" alt="{{ item.nombre }}" class="img-fluid"/>
  49.                                             </a>
  50.                                         </div>
  51.                                     </div>
  52.                                 {% endif %}
  53.                                 <div class="{% if item.imagen != '' %}col-md-8 pull-md-4{% else %}col-md-12{% endif %}">
  54.                                     <p>{{ item.resumen }}</p>
  55.                                     <ul class="list-inline links">
  56.                                         <li class="list-inline-item">
  57.                                             <a href="{{ url('blogdetalle',{url: item.url}) }}"
  58.                                                class="btn btn-secondary btn-sm"><i class="fa fa-arrow-circle-right"></i>
  59.                                                 Read more</a>
  60.                                         </li>
  61.                                     </ul>
  62.                                 </div>
  63.                             </div>
  64.                         </div>
  65.                     {% endfor %}
  66.                 </div>
  67.                 <div class="col-md-12">
  68.                     <ul class="pagination justify-content-center mt-3">
  69.                         {{ knp_pagination_render(anuncios, null) }}
  70.                     </ul>
  71.                 </div>
  72.             </div>
  73.         </div>
  74.     </div>
  75. {% endblock %}
  76. {% block javascriptspecific %}
  77. {% endblock %}