173 lines
3.5 KiB
HTML
173 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{TITLE}} - {{DATE}} - 知乎专栏</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
line-height: 1.8;
|
|
max-width: 680px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
color: #1a1a1a;
|
|
background-color: #fff;
|
|
}
|
|
h1 {
|
|
font-size: 1.8em;
|
|
font-weight: 600;
|
|
margin-top: 0;
|
|
margin-bottom: 20px;
|
|
color: #121212;
|
|
}
|
|
h2 {
|
|
font-size: 1.4em;
|
|
font-weight: 600;
|
|
margin-top: 32px;
|
|
margin-bottom: 16px;
|
|
color: #262626;
|
|
}
|
|
h3 {
|
|
font-size: 1.2em;
|
|
font-weight: 600;
|
|
margin-top: 24px;
|
|
margin-bottom: 12px;
|
|
color: #595959;
|
|
}
|
|
p {
|
|
margin: 16px 0;
|
|
color: #404040;
|
|
text-align: justify;
|
|
}
|
|
ul, ol {
|
|
padding-left: 24px;
|
|
margin: 16px 0;
|
|
}
|
|
li {
|
|
margin: 8px 0;
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin: 24px 0;
|
|
border-radius: 4px;
|
|
border: 1px solid #f0f0f0;
|
|
}
|
|
blockquote {
|
|
margin: 24px 0;
|
|
padding: 12px 20px;
|
|
border-left: 4px solid #0084ff;
|
|
background-color: #f6f9ff;
|
|
color: #595959;
|
|
}
|
|
/* 页头样式 */
|
|
.header {
|
|
margin-bottom: 32px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
padding-bottom: 20px;
|
|
}
|
|
.author-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
font-size: 0.9em;
|
|
color: #8590a6;
|
|
}
|
|
.author {
|
|
font-weight: 500;
|
|
}
|
|
.update-time {
|
|
color: #8590a6;
|
|
}
|
|
/* 内容样式 */
|
|
.content {
|
|
margin-bottom: 24px;
|
|
}
|
|
/* 标签样式 */
|
|
.tags {
|
|
margin: 24px 0;
|
|
padding: 16px 0;
|
|
border-top: 1px solid #f0f0f0;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
.tag {
|
|
display: inline-block;
|
|
margin: 4px 8px 4px 0;
|
|
padding: 4px 12px;
|
|
background-color: #f6f9ff;
|
|
color: #0084ff;
|
|
border-radius: 12px;
|
|
font-size: 0.9em;
|
|
}
|
|
/* 互动建议 */
|
|
.interaction {
|
|
margin: 24px 0;
|
|
padding: 16px;
|
|
background-color: #f6f9ff;
|
|
border-radius: 6px;
|
|
text-align: center;
|
|
color: #0084ff;
|
|
font-weight: 500;
|
|
}
|
|
/* 页脚样式 */
|
|
footer {
|
|
margin-top: 32px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #f0f0f0;
|
|
color: #8590a6;
|
|
font-size: 0.85em;
|
|
text-align: center;
|
|
}
|
|
.gen-time {
|
|
margin-top: 8px;
|
|
font-size: 0.9em;
|
|
}
|
|
@media (max-width: 600px) {
|
|
body {
|
|
padding: 16px;
|
|
line-height: 1.6;
|
|
}
|
|
h1 {
|
|
font-size: 1.5em;
|
|
}
|
|
h2 {
|
|
font-size: 1.3em;
|
|
}
|
|
.author-info {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- 页头区域 -->
|
|
<div class="header">
|
|
<h1>{{TITLE}}</h1>
|
|
</div>
|
|
|
|
<!-- 内容区域(不含标题) -->
|
|
<div class="content">
|
|
<!-- CONTENT -->
|
|
</div>
|
|
|
|
<!-- 分类标签 -->
|
|
<div class="tags">
|
|
<!-- TAGS -->
|
|
</div>
|
|
|
|
<!-- 互动建议 -->
|
|
<div class="interaction">
|
|
<p>欢迎在评论区分享你的实践经验和改进建议!</p>
|
|
</div>
|
|
|
|
<!-- 页脚区域 -->
|
|
<footer>
|
|
<p class="gen-time">生成时间:{{GEN_TIME}}</p>
|
|
</footer>
|
|
</body>
|
|
</html>
|