441 lines
9.0 KiB
HTML
441 lines
9.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
<title>{{ title }} — {{ config.site.name }}</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
|
|
<style>
|
|
html { background: #e5e5ea; }
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--bg: #e5e5ea;
|
|
--card: rgba(255,255,255,0.88);
|
|
--blue: #007aff;
|
|
--text: #1c1c1e;
|
|
--secondary: #3c3c43;
|
|
--tertiary: #8e8e93;
|
|
--border: rgba(60,60,67,0.1);
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
background-image:
|
|
radial-gradient(at 20% 20%, rgba(0,122,255,0.08) 0%, transparent 50%),
|
|
radial-gradient(at 80% 80%, rgba(52,199,89,0.06) 0%, transparent 50%);
|
|
color: var(--text);
|
|
font-family: "Nunito", -apple-system, "SF Pro Rounded", system-ui, sans-serif;
|
|
font-size: 24px;
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Status bar */
|
|
.status-bar {
|
|
height: 20px;
|
|
background: transparent;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
padding: 0 24px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--secondary);
|
|
}
|
|
|
|
/* Navigation bar */
|
|
.nav-bar {
|
|
background: rgba(255,255,255,0.72);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 12px 28px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-back {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
color: var(--blue);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.nav-back::before {
|
|
content: "<";
|
|
font-weight: 300;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-right {
|
|
font-size: 21px;
|
|
font-weight: 600;
|
|
color: var(--blue);
|
|
}
|
|
|
|
/* Page */
|
|
.page {
|
|
flex: 1;
|
|
padding: 24px 24px 48px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Main card */
|
|
.main-card {
|
|
background: var(--card);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border-radius: 24px;
|
|
box-shadow:
|
|
0 2px 8px rgba(0,0,0,0.08),
|
|
0 12px 40px rgba(0,0,0,0.1);
|
|
width: 100%;
|
|
max-width: 740px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Card header */
|
|
.card-header {
|
|
padding: 28px 32px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 24px;
|
|
}
|
|
|
|
.reading-label {
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--blue);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 42px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.02em;
|
|
color: var(--text);
|
|
line-height: 1.2;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.card-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.meta-author-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: var(--blue);
|
|
color: #fff;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
padding: 4px 10px 4px 6px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.meta-author-avatar {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.3);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 15px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.meta-pill {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--tertiary);
|
|
background: rgba(142,142,147,0.12);
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
/* Tags in header */
|
|
.card-tags {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.tag {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--blue);
|
|
background: rgba(0,122,255,0.1);
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
/* Card body */
|
|
.card-body {
|
|
padding: 28px 32px 36px;
|
|
}
|
|
|
|
/* Content */
|
|
.content-area h1 {
|
|
font-size: 36px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.02em;
|
|
color: var(--text);
|
|
margin-top: 32px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.content-area h2 {
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-top: 28px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.content-area h3 {
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-top: 22px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.content-area h4, .content-area h5, .content-area h6 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--secondary);
|
|
margin-top: 16px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.content-area p {
|
|
margin-bottom: 14px;
|
|
color: var(--secondary);
|
|
font-size: 24px;
|
|
line-height: 1.7;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.content-area a {
|
|
color: var(--blue);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.content-area a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content-area code {
|
|
font-family: "SF Mono", "Menlo", monospace;
|
|
font-size: 20px;
|
|
background: rgba(142,142,147,0.14);
|
|
color: #c0392b;
|
|
padding: 2px 6px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.content-area pre {
|
|
background: #1c1c1e;
|
|
border-radius: 16px;
|
|
padding: 20px 22px;
|
|
margin: 16px 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.content-area pre code {
|
|
background: none;
|
|
color: #e5e5ea;
|
|
padding: 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area blockquote {
|
|
background: rgba(0,122,255,0.06);
|
|
border-left: 4px solid var(--blue);
|
|
border-radius: 0 12px 12px 0;
|
|
padding: 14px 18px;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.content-area blockquote p {
|
|
color: var(--blue);
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.content-area ul {
|
|
margin: 10px 0 16px 0;
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.content-area ul li {
|
|
padding-left: 20px;
|
|
margin-bottom: 6px;
|
|
color: var(--secondary);
|
|
position: relative;
|
|
}
|
|
|
|
.content-area ul li::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 4px;
|
|
top: 9px;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--blue);
|
|
}
|
|
|
|
.content-area ol {
|
|
margin: 10px 0 16px 22px;
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.content-area li {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.content-area table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 16px 0;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
font-size: 21px;
|
|
}
|
|
|
|
.content-area th {
|
|
background: rgba(142,142,147,0.12);
|
|
padding: 10px 14px;
|
|
text-align: left;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.content-area td {
|
|
padding: 10px 14px;
|
|
border-top: 1px solid var(--border);
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.content-area img {
|
|
max-width: 100%;
|
|
border-radius: 12px;
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.content-area hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 24px 0;
|
|
}
|
|
|
|
/* Bottom home indicator */
|
|
.home-indicator {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 16px 0 8px;
|
|
}
|
|
|
|
.home-bar {
|
|
width: 134px;
|
|
height: 5px;
|
|
background: rgba(60,60,67,0.3);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.card-header,
|
|
.card-body {
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
.card-title { font-size: 33px; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a href="/{{ preview_query }}" style="position:fixed;top:calc(1rem + env(safe-area-inset-top, 0px));left:calc(1rem + env(safe-area-inset-left, 0px));z-index:9999;font-family:system-ui,-apple-system,sans-serif;font-size: 1.08rem;padding:0.5rem 0.9rem;background:rgba(255,255,255,0.95);color:#000;text-decoration:none;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,0.15);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,0.1);transition:transform 0.2s">← back</a>
|
|
|
|
<div class="status-bar">
|
|
{{ published_date }} · {{ reading_time }}
|
|
</div>
|
|
|
|
<nav class="nav-bar">
|
|
<div class="nav-back">{{ config.site.name }}</div>
|
|
<div class="nav-title">Reader</div>
|
|
<div class="nav-right">Done</div>
|
|
</nav>
|
|
|
|
<div class="page">
|
|
<div class="main-card">
|
|
|
|
<div class="card-header">
|
|
<div class="reading-label">Article</div>
|
|
<h1 class="card-title">{{ title }}</h1>
|
|
<div class="card-meta">
|
|
<div class="meta-author-chip">
|
|
<span class="meta-author-avatar">F</span>
|
|
<span>{{ config.site.author }}</span>
|
|
</div>
|
|
<span class="meta-pill">{{ published_date }}</span>
|
|
<span class="meta-pill">{{ reading_time }}</span>
|
|
{% if updated_date %}<span class="meta-pill">Updated {{ updated_date }}</span>{% endif %}
|
|
</div>
|
|
{% if taxonomy.tags %}
|
|
<div class="card-tags">
|
|
{% for tag in taxonomy.tags %}
|
|
<span class="tag">{{ tag }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
<div class="content-area">
|
|
{{ content | safe }}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="home-indicator">
|
|
<div class="home-bar"></div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|