Scaffold containerized Django/Wagtail app with core features
This commit is contained in:
8
templates/components/article_card.html
Normal file
8
templates/components/article_card.html
Normal 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>
|
||||
12
templates/components/cookie_banner.html
Normal file
12
templates/components/cookie_banner.html
Normal 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 %}
|
||||
7
templates/components/footer.html
Normal file
7
templates/components/footer.html
Normal 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>
|
||||
5
templates/components/nav.html
Normal file
5
templates/components/nav.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
<a href="/articles/">Articles</a>
|
||||
<a href="/about/">About</a>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user