Files
zero2prod/templates/email/new_post.html
Alphonse Paix 4cb1d2b6fd
Some checks failed
Rust / Test (push) Has been cancelled
Rust / Rustfmt (push) Has been cancelled
Rust / Clippy (push) Has been cancelled
Rust / Code coverage (push) Has been cancelled
Compute dashboard stats
Track open rate for new post notifications (user clicked the button in
the link or not). No data about the user is collected during the
process, it only uses an ID inserted by the issue delivery worker.
2025-09-24 04:30:27 +02:00

22 lines
822 B
HTML

{% extends "base.html" %}
{% block title %}New post available: {{ post_title }}{% endblock %}
{% block content %}
<p>Hello there!</p>
<p>I just published a new post that I think you'll find interesting:</p>
<div class="post-preview">
<h2 class="post-title">{{ post_title }}</h2>
{% if !post_excerpt.is_empty() %}<p class="post-excerpt">{{ post_excerpt }}</p>{% endif %}
</div>
<a href="{{ base_url }}/posts/{{ post_id }}?origin=EMAIL_ID"
class="cta-button">Read the full post →</a>
<p>
This post covers practical insights and real-world examples that I hope will be valuable for your backend development journey.
</p>
<p>Thanks for being a subscriber!</p>
<p>
Best regards,
<br>
<strong>Alphonse</strong>
</p>
{% endblock %}