mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 13:40:06 +00:00
🚸 增强面板自定义CSS功能
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>自定义CSS</label>
|
||||
<textarea name="CustomCSS">{{.Conf.Site.CustomCSS}}</textarea>
|
||||
<label>自定义代码(style、script 都可以)</label>
|
||||
<textarea name="CustomCode">{{.Conf.Site.CustomCode}}</textarea>
|
||||
</div>
|
||||
<button class="ui button" type="submit">保存</button>
|
||||
</form>
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
{{define "theme-default/home"}}
|
||||
{{template "common/header" .}}
|
||||
{{if ts .CustomCSS}}
|
||||
{{tag "style"}}
|
||||
{{.CustomCSS|safe}}
|
||||
{{tag "/style"}}
|
||||
{{if ts .CustomCode}}
|
||||
{{.CustomCode|safe}}
|
||||
{{end}}
|
||||
{{template "common/menu" .}}
|
||||
<div class="nb-container">
|
||||
|
||||
@@ -19,10 +19,8 @@
|
||||
<link rel="stylesheet" href="/static/theme-hotaru/css/core.css?v202012121912" type="text/css">
|
||||
<link rel="stylesheet" href="/static/theme-hotaru/css/main.css?v202012202312" type="text/css">
|
||||
<link rel="stylesheet" href="/static/theme-hotaru/css/darkmode.css?v202012121912" type="text/css">
|
||||
{{if ts .CustomCSS}}
|
||||
{{tag "style"}}
|
||||
{{.CustomCSS|safe}}
|
||||
{{tag "/style"}}
|
||||
{{if ts .CustomCode}}
|
||||
{{.CustomCode|safe}}
|
||||
{{end}}
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user