😶‍🌫️添加邮件模板以美观

This commit is contained in:
2024-07-06 20:02:50 +08:00
parent f860e823cd
commit 620dca6e28
6 changed files with 169 additions and 19 deletions

View File

@ -0,0 +1,135 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>最新文章通知</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
background-color: #ffffff;
margin: 50px auto;
padding: 40px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 80%;
max-width: 600px;
}
.header {
margin-top: 30px;
text-align: center;
padding-bottom: 20px;
}
.header h1 {
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.content {
font-size: 16px;
line-height: 1.6;
}
.content p {
margin: 10px 0;
}
.content .title {
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
}
.content p strong {
display: inline-block;
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
}
.content .summary {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
word-break: break-all;
}
.content .published {
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
}
.button {
display: block;
width: 200px;
max-width: 100%;
margin: 20px auto;
padding: 10px 20px;
text-align: center;
background-color: #007bff;
color: #ffffff;
text-decoration: none;
border-radius: 5px;
}
.button:hover {
background-color: #0056b3;
}
@media (max-width: 300px) {
.button {
width: auto;
}
}
.footer {
text-align: center;
margin-top: 20px;
font-size: 18px;
color: #777777;
}
.unsubscribe {
text-align: center;
margin-top: 60px;
font-size: 12px;
color: #777777;
}
.unsubscribe a {
color: #777777;
text-decoration: none;
}
.unsubscribe a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>清羽飞扬の最新文章</h1>
</div>
<div class="content">
<p><strong>文章标题:</strong> <span class="title">{{ title }}</span></p>
<p><strong>文章内容:</strong> <span class="summary">{{ summary }}</span></p>
<p><strong>发布时间:</strong> <span class="published">{{ published }}</span></p>
</div>
<a href="{{ link }}" class="button">阅读更多</a>
<div class="footer">
<p>感谢您的订阅!</p>
</div>
<div class="unsubscribe">
<p><a href="https://github.com/willow-god/Friend-Circle-Lite/issues">取消订阅</a></p>
</div>
</div>
</body>
</html>

View File

@ -1,13 +1,5 @@
{
"articles": [
{
"title": "Spikformer脉冲神经网络学习",
"author": "",
"link": "https://blog.qyliu.top/posts/67189760/",
"published": "2024-07-06 05:33",
"summary": "近期我们进行了人工智能实训,我们小组选择的是脉冲神经网络,不同于原先的神经网络,这个网络采用的是脉冲信号,目前脉冲神经网络的效果并不是很好,但是因为是一个全新的神经网络架构,并且基于生物启发的计算方式,使得它们在处理稀疏和非结构化数据时具有独特的优势。",
"content": "近期我们进行了人工智能实训,我们小组选择的是脉冲神经网络,不同于原先的神经网络,这个网络采用的是脉冲信号,目前脉冲神经网络的效果并不是很好,但是因为是一个全新的神经网络架构,并且基于生物启发的计算方式,使得它们在处理稀疏和非结构化数据时具有独特的优势。"
},
{
"title": "东软软件园实习日记",
"author": "",