QQgit/custom/templates/custom/header.tmpl

22 lines
1.4 KiB
Cheetah
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{/*
custom/header.tmpl —— 注入到 <head> 末尾(见 base/head.tmpl 第 30 行)
职责:引入「蓝白 ins 风」细节层 + 预加载等宽字体
注意:只做外观增强,不引入任何外部依赖,全部资源随 custom/ 一起发布
*/}}
<link rel="preload" href="{{AssetUrlPrefix}}/fonts/jetbrains-mono-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/qq-ui.css?v=10">
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/qq-fx.css?v=10">
<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/qq-pages.css?v=10">
<meta name="theme-color" content="#60A5FA" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0D1117" media="(prefers-color-scheme: dark)">
{{/*
图标覆盖:Gitea 只在 head 里给 rel=icon 指向 /assets/img/favicon.svg(无版本号),
浏览器会把 favicon 单独缓存在 origin 级别的数据库里,普通刷新不会重拉,
所以线上明明已经是蓝色 Q,老访客标签页还显示旧的绿色 Gitea 杯子。
这里再挂一组带 ?v= 的图标链接强制重拉;换 Logo 时把 v= 的数字加一即可。
*/}}
<link rel="icon" type="image/svg+xml" href="{{AssetUrlPrefix}}/img/favicon.svg?v=2">
<link rel="alternate icon" type="image/png" href="{{AssetUrlPrefix}}/img/favicon.png?v=2">
<link rel="apple-touch-icon" sizes="180x180" href="{{AssetUrlPrefix}}/img/apple-touch-icon.png?v=2">