This commit is contained in:
SG
2025-06-05 16:36:16 +03:00
parent 96c0fad3ae
commit 36855fe7fb
4 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@@ -169,3 +169,4 @@ cython_debug/
#.idea/
public
content/*

View File

@@ -85,3 +85,6 @@ with (output_dir / "index.html").open("w", encoding="utf-8") as f:
# Render the about file
about_content = ContentItemPrototype(Path('static/about.md'))
about_content.render_content()
# Move 'robots.txt' into output_dir
shutil.copyfile(static_dir / 'robots.txt', output_dir / 'robots.txt')

View File

@@ -7,7 +7,7 @@
<div class="card h-100" style="border-radius: 5px;">
<img src="{{ content_item.image }}" alt="{{ content_item.title }}" class="card-img-top img-fluid" style="background: rgb(77, 77, 77); object-fit: cover; height: 200px; border-radius: 5px;">
<div class="card-body d-flex flex-column">
<h5 class="card-title">{{ content_item.title }}</h5>
<h5 class="card-title"><a class="text-decoration-none text-body" href="{{ content_item.slug}}.html ">{{ content_item.title }}</a></h5>
<p class="card-text mb-3">{{ content_item.preview | safe}}</p>
</div>