Skip to content

Commit

Permalink
Fix ingame screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
gereon77 committed Jun 15, 2024
1 parent ccca344 commit 3c7e50c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ <h4 class="fab fa-discord m-0"></h4>
{% for post in posts %}
<div class="card mb-4">
<div class="card-body">
<h3 class="card-title">{{ post.title }}</h3>
<h6 class="card-subtitle mb-3 text-muted">{{ post.created_at | date:"d F Y" }}</h6>
{{ post.content | safe }}
{% if post.title != "ingame-screenshot" %}
<h3 class="card-title">{{ post.title }}</h3>
<h6 class="card-subtitle mb-3 text-muted">{{ post.created_at | date:"d F Y" }}</h6>
{{ post.content | safe }}
{% else %}
<img class="w-100" src="{% static 'ingame-screenshot.png' %}">
{% endif %}
</div>
</div>
{% endfor %}
Expand Down
7 changes: 5 additions & 2 deletions agot-bg-website/agotboardgame_main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ def index(request):
<p>Happy gaming,<br>
Gereon</p>
<img src="/static/ingame-screenshot.png" style="max-width: 100%; height: auto;">
""",
"created_at": date(day=15, month=6, year=2024)
},
{
"title": "ingame-screenshot",
"content": "",
"created_at": date(day=15, month=6, year=2024)
},
{
"title": "An update on Swords and Ravens",
"content": """
Expand Down

0 comments on commit 3c7e50c

Please sign in to comment.