2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 04:56:45 +00:00
inventree-website/_layouts/collection/collection_index.html
Matthias Mair 5f563ef584
Feat/check links (#125)
* always run CI, check for html errors

* fix links

* switch a tags to div

* add alt text

* fix internal links

* remove unneeded example section

* remove legacy section

* update requirements

* test more

* fix flag
2023-02-01 00:17:59 +01:00

23 lines
1.1 KiB
HTML

---
layout: default
---
<section class="cm-gray-2 body-font">
<div class="pt-3 pb-1 section-container">
<h1 class="header-text title-font mb-4 cm-gray-2 flex items-end">{{ page.title_text }}<a href="{{ page.permalink|append:'/feed.atom' }}" alr="Atom feed" class="ml-3 cm-gray-3"><img class="h-5 w-5" src="{{ '/assets/rss.svg' | relative_url }}" alt="RSS symbol"/></a></h1>
<div class="flex flex-wrap">
{% assign cols = site[page.collection] %}
{% if page.collection_reverse == true %}{% assign cols = cols | reverse %}{% endif %}
{% for item in cols %}
<div class="p-6 md:w-1/2 flex flex-col items-start">
<h2 class="header-text title-font mb-4 cm-gray-1">
<a href="{{ item.url | relative_url }}">{{ item.title }}</a>
</h2>
<span class="leading-relaxed mb-4">{{ item.excerpt | strip_html | strip_newlines | truncate: 156 }}</span>
<span>{{ item.date | date_to_string }} | {% include partial/publisher_link.html pub=item.author %}</span>
</div>
{% endfor %}
</div>
</div>
</section>