diff options
| author | 2025-10-24 00:28:40 +0700 | |
|---|---|---|
| committer | 2025-10-24 00:28:40 +0700 | |
| commit | adcd8cf82f7ec4027701643c545b1f27a7cfc221 (patch) | |
| tree | d3a0d95c851108447b6ce55b5326943d3581126c /views/messages | |
| parent | f101d6a555c6d3453def332f2c230b37ae5c81b4 (diff) | |
| download | web-adcd8cf82f7ec4027701643c545b1f27a7cfc221.tar.gz web-adcd8cf82f7ec4027701643c545b1f27a7cfc221.zip | |
feat: send new blog posts to subscribers
Diffstat (limited to 'views/messages')
| -rw-r--r-- | views/messages/new-post.html | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/views/messages/new-post.html b/views/messages/new-post.html index 4fbfc02..7b3082a 100644 --- a/views/messages/new-post.html +++ b/views/messages/new-post.html @@ -1,3 +1,19 @@ {{ define "body" }} -<p>Новый пост ёпта.</p> -{{ end }}
\ No newline at end of file +<p>{{ .L.Mail.NewPost.Intro }}</p> +<table> + <tr> + <td rowspan="3"><a href="https://{{ .ClientHost }}/{{ .Lang }}/blog/{{ .Post.FileName }}"><img src="https://f003.backblazeb2.com/file/sayana-photos/webp-320p/{{ .Post.Metadata.Thumbnail }}.webp"></a></td> + <td class="darkened" style="font-size: 24px"><a href="https://{{ .ClientHost }}/{{ .Lang }}/blog/{{ .Post.FileName }}">{{ .Post.Metadata.Title }}</a></td> + </tr> + <tr> + <td class="darkened" style="font-size: 16px">{{ .Post.Metadata.ShortDescription }}</td> + </tr> + <tr> + <td class="darkened" style="font-size: 16px">{{ .L.Mail.NewPost.CapturedOn }} {{ .Post.Metadata.ActionDate }}</td> + </tr> +</table> +{{ end }} + +{{ define "footer" }} +<p>{{ .L.Mail.UnsubscribeFooter }}</p> +{{ end }} |