Files
blogsite/blog/templates/base_content.html
T
xiaoan 89b4ed1642 加入「拾源」:想法 → GitHub 条件 → 仓库 → AI 解读与存档
- 新增 explore 应用:Idea / SearchSpec / Repository / Note 及迁移
- Ollama 生成 GitHub 检索条件(language / stars / topic / sort),并批量解读仓库简介
- 接入 GitHub 仓库搜索 REST API,结果入库并按想法关联
- 想法级与仓库级「我的其他思考」,支持多条添加与删除
- 新增存档页:按想法 / 有想法的仓库两个视角,跨想法合并仓库
- 前端 /explore/ 四步流程、条件展示、筛选器、AI 解读目录、?idea= 恢复现场
- settings 增加 OLLAMA_* / GITHUB_* 配置
2026-11-20 17:29:38 +08:00

75 lines
3.1 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 %}
</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>