Advertisement
Guest User

blog.html.twig

a guest
Mar 31st, 2018
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {% embed 'partials/base.html.twig' %}
  2.  
  3. {% set collection = page.collection %}
  4. {% set pagination = collection.params.pagination %}
  5.  
  6. {% set jscroll_init %}
  7. $(document).ready(function() {
  8. $('.infinite-scroll').jscroll({
  9. autoTrigger: true,
  10. nextSelector: '[rel="next"]'
  11. });
  12. });
  13. {% endset %}
  14.  
  15. {% block javascripts %}
  16. {{ parent() }}
  17. {% do assets.addInlineJs(jscroll_init) %}
  18. {% endblock %}
  19.  
  20. {% block header %}
  21. {% if theme_config.home_profile %}
  22. {% include 'partials/profile.html.twig' %}
  23. {% else %}
  24. {{ parent() }}
  25. {% endif %}
  26. {% endblock %}
  27.  
  28. {% block content %}
  29. <div class="infinite-scroll columns small-12 large-8">
  30. <section class="blog-grid">
  31. <div class="container">
  32. <div class="headline has-separator">
  33. <div class="headline-title">
  34. <h2>Latest News</h2>
  35. </div>
  36. <div class="headline-content" >
  37. <p>Donec sit amet consectetur lectus. Vestibulum egestas neque nulla, quis aliquet mauris molestie vitae. Duis blandit gravida semper.</p>
  38. </div>
  39. </div>
  40. <div class="filters">
  41. <ul class="filters-menu">
  42. <li class="active"><a href="">Show All</a></li>
  43. <li><a href="">Branding</a></li>
  44. <li><a href="">Personal</a></li>
  45. <li><a href="">Photography</a></li>
  46. <li><a href="">Copy</a></li>
  47. <li><a href="">Art</a></li>
  48. </ul>
  49. </div>
  50. <div class="row grid">
  51. <div class="col-sm-4 grid-sizer"></div>
  52. {% for post in collection %}
  53. {% include 'partials/post-item.html.twig' %}
  54. {% endfor %}
  55. {% if config.plugins.pagination.enabled and collection.params.pagination %}
  56. {% include 'partials/load-more.html.twig' %}
  57. {% endif %}
  58. </div>
  59. </div>
  60.  
  61. </div>
  62. </section>
  63. <div class="sidebar columns large-4 show-for-large">
  64. <div class="sidebar--inner">
  65. {% include 'partials/sidebar.html.twig' with {'blog':page} %}
  66. </div>
  67. </div>
  68.  
  69.  
  70. {% endblock %}
  71.  
  72. {% endembed %}
Advertisement
RAW Paste Data Copied
Advertisement