Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

article-cards.html 2.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  1. {% assign maxArticles = 9 %}
  2. <div class="container-xl px-3 px-md-6 pt-3 pb-2">
  3. <h2 class="mb-3 font-mktg">{% data ui.product_sublanding.all_guides %}</h2>
  4. <form class="mt-2 mb-5 d-flex d-flex">
  5. <div>
  6. <label for="type" class="text-uppercase f6 color-text-secondary d-block">{% data ui.product_sublanding.filters.type %}</label>
  7. <select class="form-select js-filter-card-filter-dropdown f4 text-bold border-0 rounded-0 border-top box-shadow-none pl-0 js-filter-card-filter-dropdown" name="type" aria-label="guide types">
  8. <option value="">{% data ui.product_sublanding.filters.all %}</option>
  9. {% for type in site.data.ui.product_sublanding.guide_types %}
  10. <option value="{{ type[0] }}">{{ type[1] }}</option>
  11. {% endfor %}
  12. </select>
  13. </div>
  14. <div class="mx-4">
  15. <label for="topic" class="text-uppercase f6 color-text-secondary d-block">{% data ui.product_sublanding.filters.topic %}</label>
  16. <select class="form-select js-filter-card-filter-dropdown f4 text-bold border-0 rounded-0 border-top box-shadow-none pl-0 js-filter-card-filter-dropdown" name="topics" aria-label="guide topics">
  17. <option value="">{% data ui.product_sublanding.filters.all %}</option>
  18. {% for topic in page.allTopics %}
  19. <option value="{{ topic }}">{{ topic }}</option>
  20. {% endfor %}
  21. </select>
  22. </div>
  23. </form>
  24. <div class="d-flex flex-wrap mr-0 mr-md-n6 mr-lg-n8">
  25. {% for article in page.includeGuides %}
  26. {% assign card_display_class = "" %}
  27. {% if forloop.index > maxArticles %}
  28. {% assign card_display_class = "d-none" %}
  29. {% endif %}
  30. {% capture link_card %}
  31. {% link_as_article_card {{ article.href }} %}
  32. {% endcapture %}
  33. {{ link_card | replace: "<display condition>", card_display_class }}
  34. {% endfor %}
  35. <button class="col-12 mt-5 text-center text-bold color-text-link btn-link js-filter-card-show-more" data-js-filter-card-max="{{ maxArticles }}">
  36. {% data ui.product_sublanding.load_more %}
  37. </button>
  38. <div class="js-filter-card-no-results d-none py-4 text-center color-text-secondary">
  39. <h4 class="text-normal">{% data ui.product_sublanding.no_result %}</h4>
  40. </div>
  41. </div>
  42. </div>
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...