Add new templates and tests for improved functionality

- Created index.html template for the homepage with service cards and partner logos.
- Added page_from_md.html template for rendering pages from markdown.
- Developed services.html template detailing various services offered.
- Implemented tests for link handling in markdown, ensuring external links open in new tabs and internal links function correctly.
- Enhanced markdown parser tests to validate heading extraction, content rendering, and link safety.
- Introduced utility tests for template rendering, HTML minification, and JavaScript minification.

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-02 13:05:43 +02:00
parent 559a6e4c56
commit 9f0a216c5e
79 changed files with 4700 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<div class="section-card">
<h3 class="section-card-title">{{ card.title }}</h3>
{% if card.content %}
<div class="section-content">{{ card.content | safe }}</div>
{% endif %} {% if card.details %}
<div class="mt-4 space-y-3">
{% for detail in card.details %}
<div class="section-card-detail">
<h4 class="section-card-detail-title">{{ detail.title }}</h4>
{% if detail.content %}
<div class="section-card-detail-content">{{ detail.content | safe }}</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
+8
View File
@@ -0,0 +1,8 @@
<div id="hero">
<div class="container">
<h1>{{ page.title }}</h1>
{% if page.subtitle %}
<p>{{ page.subtitle }}</p>
{% endif %}
</div>
</div>
+13
View File
@@ -0,0 +1,13 @@
<div class="section">
<div class="section-container container">
<h2>{{ section.title }}</h2>
{% if section.content %}
<div class="section-content">{{ section.content | safe }}</div>
{% endif %} {% if section.cards %}
<div class="section-cards">
{% for card in section.cards %} {% include 'components/card.html' %} {%
endfor %}
</div>
{% endif %}
</div>
</div>