Templates refactoring
Inject HTML directly and fix footer out of main content <div>
This commit is contained in:
@@ -128,18 +128,18 @@ body {
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="footer">
|
||||||
<div class="footer">
|
<p>
|
||||||
<p>
|
<strong>zero2prod</strong>
|
||||||
<strong>zero2prod</strong>
|
<br>
|
||||||
<br>
|
Building better backends with Rust
|
||||||
Building better backends with Rust
|
</p>
|
||||||
</p>
|
<p>
|
||||||
<p>
|
<a href="{{ base_url }}">Visit the blog</a> •
|
||||||
<a href="{{ base_url }}">Visit the blog</a> •
|
<a href="{{ base_url }}/unsubscribe?token=UNSUBSCRIBE_TOKEN">Unsubscribe</a>
|
||||||
<a href="{{ base_url }}/unsubscribe?token=UNSUBSCRIBE_TOKEN">Unsubscribe</a>
|
</p>
|
||||||
</p>
|
<p class="unsubscribe">You're receiving this because you subscribed to the zero2prod newsletter.</p>
|
||||||
<p class="unsubscribe">You're receiving this because you subscribed to the zero2prod newsletter.</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}{{ html_content }}{% endblock %}
|
{% block content %}{{ html_content|safe }}{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user