Files
satware.ai/overrides/partials/post-list.html
T
mwandGitHub ee8eba8549 Refactor MkDocs blog structure, enhance SCSS watcher, and improve plugin configuration (#103)
- Adjusted `mkdocs.sh` to expand SCSS watcher to include `docs` and `mkdocs.yml`.
- Simplified blog template by extracting post logic to `partials/post.html`.
- Updated `mkdocs.yml` with refined plugins including RSS, meta, and enhanced blog options.
- Improved blog Markdown files with structural changes and better TOC handling.
- Removed unused styles and deprecated logic in blog posts for cleaner maintenance.
2025-06-02 16:01:40 +02:00

46 lines
1.8 KiB
HTML

{% if config.plugins.blog.post_url_format %}
<div class="md-posts">
{% for post in posts %}
<article class="md-post md-post--excerpt">
<header class="md-post__header">
{% if post.authors %}
<nav class="md-post__authors md-typeset">
{% for author in post.authors %}
<span class="md-author">
<img src="{{ author.avatar }}" alt="{{ author.name }}">
</span>
{% endfor %}
</nav>
{% endif %}
<div class="md-post__meta md-typeset">
<time datetime="{{ post.config.date.created }}">
{{ post.config.date.created | date }}
</time>
{% if post.categories %}
<span class="md-post__categories">
{% for category in post.categories %}
<a href="{{ category.url | url }}" title="Kategorie: {{ category.title }}">{{ category.title }}</a>
{%- if not loop.last %}, {% endif -%}
{% endfor %}
</span>
{% endif %}
{% if post.config.readtime %}
<span>{{ post.config.readtime }} Min. Lesezeit</span>
{% endif %}
</div>
</header>
<div class="md-post__content md-typeset">
<h2>
<a href="{{ post.url | url }}" title="{{ post.config.title }}">{{ post.config.title }}</a>
</h2>
<nav class="md-post__action">
<a href="{{ post.url | url }}" class="md-button" title="Weiterlesen: {{ post.config.title }}">
Weiterlesen
</a>
</nav>
</div>
</article>
{% endfor %}
</div>
{% endif %}