- 新增 studio 应用与 /manage/ 写作台 - 文章增删改查、状态/分类/标签、搜索筛选分页 - 分类增删改查,支持父分类 - 直接上传 .md(front matter)并创建文章,编辑页支持 Markdown 导入 - Post 增加 content_format,公开文章页支持 Markdown 渲染 - 复用拾匣密码解锁;首页页脚新增写作台入口
76 lines
3.2 KiB
HTML
76 lines
3.2 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="zh-CN" data-theme="light">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
<meta name="color-scheme" content="light dark">
|
|
<meta name="csrf-token" content="{{ csrf_token }}">
|
|
<title>{% block title %}拾光{% endblock %}</title>
|
|
<meta name="description" content="{% block description %}把每一次思考 · 织成会生长的网{% endblock %}">
|
|
|
|
<!-- 主题预置:在样式生效前定好明暗,避免闪烁(键名与首页一致) -->
|
|
<script>
|
|
(function () {
|
|
var t = 'light';
|
|
try { t = localStorage.getItem('theme') || 'light'; } catch (e) {}
|
|
document.documentElement.dataset.theme = (t === 'dark') ? 'dark' : 'light';
|
|
})();
|
|
</script>
|
|
|
|
<link rel="preconnect" href="https://fonts.loli.net">
|
|
<link rel="preconnect" href="https://gstatic.loli.net" crossorigin>
|
|
<link href="https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@500;600;700;900&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
|
|
<link rel="stylesheet" href="{% static 'blog/css/reading.css' %}">
|
|
<!-- 代码高亮(深色代码块配套主题) -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github-dark.min.css">
|
|
{% block extra_css %}{% endblock %}
|
|
{% block extra_head %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<a class="skip-link" href="#article">跳到正文</a>
|
|
|
|
<div class="page-glow" aria-hidden="true"><i></i><i></i><i></i></div>
|
|
<div class="read-progress" id="readProgress" aria-hidden="true"><i></i></div>
|
|
|
|
<header class="site-head" id="siteHead">
|
|
<a class="brand" href="/" aria-label="拾光 · 返回思维导航">
|
|
<span class="brand-mark" aria-hidden="true">思</span>
|
|
<span class="brand-text">
|
|
<b>拾光</b>
|
|
<small>{% block brand_sub %}MIND MAP · READING{% endblock %}</small>
|
|
</span>
|
|
</a>
|
|
<div class="head-actions">
|
|
<a class="btn-map" href="/" title="返回思维导图">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"
|
|
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<path d="M19 12H5M11 6l-6 6 6 6"/>
|
|
</svg>
|
|
<span>返回导图</span>
|
|
</a>
|
|
<button class="icon-btn" id="btnTheme" type="button" aria-label="切换明暗主题" title="切换主题(明 / 暗)">◐</button>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="reading" id="article">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<!-- 侧栏目录:由 reading.js 根据正文标题生成 -->
|
|
<aside class="toc" id="toc" hidden aria-label="本篇目录">
|
|
<p class="toc-title"><span>✦</span>本篇目录</p>
|
|
<ol class="toc-list"></ol>
|
|
</aside>
|
|
|
|
<footer class="site-foot">
|
|
<p>{% block footer %}© 2026 拾光<span class="dot"></span>字句织网 · 思绪成图{% endblock %}</p>
|
|
</footer>
|
|
|
|
<script defer src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js"></script>
|
|
<script src="{% static 'blog/js/reading.js' %}"></script>
|
|
{% block extra_js %}{% endblock %}
|
|
</body>
|
|
</html>
|