Skip to content
Snippets Groups Projects
Commit fb83a1a5 authored by Harshna Haswani's avatar Harshna Haswani
Browse files

add div to separate sections

parent 3f39a115
No related branches found
No related tags found
1 merge request!11New aricles
......@@ -2,7 +2,8 @@
{% block content %}
{{content | safe}}
{% set sections = {"Articles": "article", "Case Studies & White Papers": "cs-wp", "Thought pieces": "thoughts"} %}
{% for key, value in sections %}
{% for key, value in sections %}
<div>
<h2>{{key}}</h2>
{% for item in collections.articles | reverse -%}
{% if item.data.category === value %}
......@@ -14,7 +15,9 @@
{# <img src="{{item.data.icon}}" alt="{{item.data.title}}"></a> #}
{# </figure> #}
<h3 id="{{item.data.title | slug}}"><a href="{{item.url}}">
{% if item.data.part %} <span>{{item.data.part}}</span> {% endif %} {{item.data.title}}</a></h3>
{% if item.data.part %} <span>{{item.data.part}}</span> {% endif %}
{{item.data.title}}
</a></h3>
{% if item.data.subtitle %}
<span>{{item.data.subtitle}}</span>
{% endif %}
......@@ -22,6 +25,7 @@
</div>
{% endif %}
{%- endfor %}
</div>
{% endfor %}
{% endblock %}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment