Scaffold containerized Django/Wagtail app with core features

This commit is contained in:
Codex_B
2026-02-28 11:52:59 +00:00
parent 62323abd62
commit b5f0f40c4c
84 changed files with 1647 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{% load core_tags %}
<article>
<a href="{{ article.url }}">{{ article.title }}</a>
<p>{{ article.summary|truncatewords:20 }}</p>
{% for tag in article.tags.all %}
<span class="{{ tag|get_tag_css }}">{{ tag.name }}</span>
{% endfor %}
</article>

View File

@@ -0,0 +1,12 @@
{% if request.consent.requires_prompt %}
<div id="cookie-banner">
<form method="post" action="{% url 'consent' %}">
{% csrf_token %}
<button type="submit" name="accept_all" value="1">Accept all</button>
<button type="submit" name="reject_all" value="1">Reject all</button>
</form>
{% if site_settings and site_settings.privacy_policy_page %}
<a href="{{ site_settings.privacy_policy_page.url }}">Privacy Policy</a>
{% endif %}
</div>
{% endif %}

View File

@@ -0,0 +1,7 @@
{% load core_tags %}
<footer>
{% get_legal_pages as legal_pages %}
{% for page in legal_pages %}
<a href="{{ page.url }}">{{ page.title }}</a>
{% endfor %}
</footer>

View File

@@ -0,0 +1,5 @@
<nav>
<a href="/">Home</a>
<a href="/articles/">Articles</a>
<a href="/about/">About</a>
</nav>