feat: adapt home appearance to wallpaper colors
This commit is contained in:
1 parent
c7aa4fd7dd
commit
0964fdc5b7
23 files changed
+628
-32
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{{ define "auth.gohtml" }}<!doctype html>
|
||||
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>{{ if .CLIAuth }}{{ T "auth.cli_title" }}{{ else if .Logout }}{{ T "auth.logout" }}{{ else if .MFA }}{{ T "auth.totp" }}{{ else if .Setup }}{{ T "auth.setup" }}{{ else }}{{ T "auth.login" }}{{ end }} · {{ .WikiName }}</title>
|
||||
<link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/home.css?v=12"><link rel="stylesheet" href="/static/css/auth.css?v=1"><link rel="stylesheet" href="{{ .ThemeCSS }}"></head>
|
||||
<link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/home.css?v=13"><link rel="stylesheet" href="/static/css/auth.css?v=1"><link rel="stylesheet" href="{{ .ThemeCSS }}"></head>
|
||||
<body class="auth-page" style="--home-glass-opacity:{{ .HomeGlassOpacity }}%">
|
||||
{{ if .HomeWallpaperURL }}<img class="home-wallpaper" src="{{ .HomeWallpaperURL }}" alt="" aria-hidden="true" decoding="async" fetchpriority="high" style="opacity:{{ .HomeWallpaperOpacity }}">{{ end }}
|
||||
<a class="auth-brand" href="/">{{ .WikiName }}</a>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<link rel="stylesheet" href="/static/css/theme/base.css">
|
||||
<link rel="stylesheet" href="{{ .ThemeCSS }}">
|
||||
<link rel="stylesheet" href="/static/css/config.css?v=external-resources-1">
|
||||
<link rel="stylesheet" href="/static/css/config.css?v=home-palette-1">
|
||||
</head>
|
||||
|
||||
<body class="mode-config">
|
||||
@@ -107,6 +107,7 @@
|
||||
<p class="muted wide">{{ T "home.wallpaper_help" }}</p>
|
||||
<label class="wide">{{ T "home.glass_transparency" }}<span class="config-range-control"><input name="home_glass_transparency" type="range" min="0" max="85" step="1" value="{{ .HomeGlassTransparency }}" data-range-output="home-glass-transparency-output"><output id="home-glass-transparency-output">{{ .HomeGlassTransparency }}%</output></span></label>
|
||||
<p class="muted wide">{{ T "home.glass_help" }}</p>
|
||||
{{ template "home-palette-controls" . }}
|
||||
<p class="muted wide">{{ T "home.layout_help" }}</p>
|
||||
<a class="wide" href="/-/sys/config?panel=bookmarks" data-config-panel="bookmarks">{{ T "config.manage_bookmarks" }} →</a>
|
||||
<label class="config-toggle wide" data-label="{{ T "config.virtual_folder_pages" }}"><input name="virtual_folder_pages" value="1" type="checkbox" role="switch" aria-label="{{ T "config.virtual_folder_pages" }}" {{ if .VirtualFolderPages }}checked{{ end }}></label>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<link rel="stylesheet" href="/static/css/theme/base.css">
|
||||
<link rel="stylesheet" href="/static/css/content-viewer.css">
|
||||
<link rel="stylesheet" href="/static/css/home.css?v=12">
|
||||
<link rel="stylesheet" href="/static/css/home.css?v=13">
|
||||
<link rel="stylesheet" href="{{ .ThemeCSS }}">
|
||||
<script defer src="/static/js/content-viewer.js"></script>
|
||||
<script defer src="/static/js/home-type-search.js?v=1"></script>
|
||||
@@ -83,6 +83,6 @@
|
||||
<button type="button" data-children-delete>{{ T "children.delete_selected" }}</button>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
{{ template "home-appearance" . }}{{ template "home-palette" . }}</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
@@ -13,7 +13,7 @@
|
||||
<link rel="stylesheet" href="/static/css/content-viewer.css">
|
||||
<link rel="stylesheet" href="/static/css/city-graph.css">
|
||||
<link rel="stylesheet" href="{{ .ThemeCSS }}">
|
||||
{{ if .IsHome }}<link rel="stylesheet" href="/static/css/home.css?v=12">{{ end }}
|
||||
{{ if .IsHome }}<link rel="stylesheet" href="/static/css/home.css?v=13">{{ end }}
|
||||
<script defer src="/static/js/content-viewer.js"></script>
|
||||
<script defer src="/static/js/viewer-shortcuts.js"></script>
|
||||
{{ if eq .ContentView.Kind "code" }}
|
||||
@@ -990,6 +990,6 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
</body>
|
||||
{{ template "home-appearance" . }}{{ template "home-palette" . }}</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
@@ -1,9 +1,9 @@
|
||||
{{ define "periodical.gohtml" }}<!doctype html><html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ .Title }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/home.css?v=12"><link rel="stylesheet" href="/static/css/periodicals.css?v=6"></head>
|
||||
<body class="{{ .Theme }} periodical-top">{{ if .HomeWallpaperURL }}<img class="home-wallpaper" src="{{ .HomeWallpaperURL }}" alt="" aria-hidden="true" decoding="async" fetchpriority="high" style="opacity:{{ .HomeWallpaperOpacity }}">{{ end }}<main class="periodical-shell" data-periodical-kind="{{ .Kind }}"><header class="topbar"><a href="/">{{ .WikiName }}</a>{{ if not .Public }}<nav><a href="/v/diary">{{ T "periodical.diary" }}</a><a href="/v/blog">{{ T "periodical.blog" }}</a></nav>{{ template "auth-menu" . }}{{ end }}</header><div class="periodical-heading"><h1>{{ .Title }}</h1><nav>{{ if .CanConfigure }}<a href="/-/sys/config?panel={{ .Kind }}" title="{{ T "extension.settings" }}">⚙</a>{{ end }}{{ if and .Projection (not .Public) }}<a href="{{ .SourceViewer }}">{{ T "periodical.source_viewer" }}</a>{{ else if and .Enabled (not .Public) }}<button type="button" data-periodical-compose aria-haspopup="dialog">+ {{ T "periodical.compose" }}</button><a href="/v/{{ .Kind }}/-/new" aria-label="{{ T "periodical.new_page" }}" title="{{ T "periodical.new_page" }}">↗</a><button type="button" data-periodical-new aria-haspopup="dialog">{{ T "periodical.plan" }}</button><button type="button" data-periodical-add aria-haspopup="dialog">+ {{ T "periodical.register" }}</button>{{ end }}</nav></div>{{ if not .Public }}<p class="muted">{{ T "periodical.scope_help" }}</p>{{ end }}
|
||||
{{ define "periodical.gohtml" }}<!doctype html><html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{ .Title }} · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/home.css?v=13"><link rel="stylesheet" href="/static/css/periodicals.css?v=6"></head>
|
||||
<body class="{{ .Theme }} periodical-top"{{ if .IsHome }} style="--home-glass-opacity:{{ .HomeGlassOpacity }}%"{{ end }}>{{ if .HomeWallpaperURL }}<img class="home-wallpaper" src="{{ .HomeWallpaperURL }}" alt="" aria-hidden="true" decoding="async" fetchpriority="high" style="opacity:{{ .HomeWallpaperOpacity }}">{{ end }}<main class="periodical-shell" data-periodical-kind="{{ .Kind }}"><header class="topbar"><a href="/">{{ .WikiName }}</a>{{ if not .Public }}<nav><a href="/v/diary">{{ T "periodical.diary" }}</a><a href="/v/blog">{{ T "periodical.blog" }}</a></nav>{{ template "auth-menu" . }}{{ end }}</header><div class="periodical-heading"><h1>{{ .Title }}</h1><nav>{{ if .CanConfigure }}<a href="/-/sys/config?panel={{ .Kind }}" title="{{ T "extension.settings" }}">⚙</a>{{ end }}{{ if and .Projection (not .Public) }}<a href="{{ .SourceViewer }}">{{ T "periodical.source_viewer" }}</a>{{ else if and .Enabled (not .Public) }}<button type="button" data-periodical-compose aria-haspopup="dialog">+ {{ T "periodical.compose" }}</button><a href="/v/{{ .Kind }}/-/new" aria-label="{{ T "periodical.new_page" }}" title="{{ T "periodical.new_page" }}">↗</a><button type="button" data-periodical-new aria-haspopup="dialog">{{ T "periodical.plan" }}</button><button type="button" data-periodical-add aria-haspopup="dialog">+ {{ T "periodical.register" }}</button>{{ end }}</nav></div>{{ if not .Public }}<p class="muted">{{ T "periodical.scope_help" }}</p>{{ end }}
|
||||
{{ if not .Enabled }}<p role="status">{{ T "periodical.disabled" }}</p>{{ else }}
|
||||
|
||||
<div class="periodical-layout"><section class="periodical-entries" aria-label="{{ .Title }}"><table class="periodical-index"><thead><tr><th scope="col">{{ T "periodical.date" }}</th><th scope="col">{{ T "periodical.title" }}</th><th scope="col" class="periodical-index-actions">{{ T "config.actions" }}</th></tr></thead><tbody>{{ range .Entries }}<tr data-periodical-entry data-page="{{ .PageUUID }}" data-path="{{ .Path }}" data-title="{{ .Title }}" data-date="{{ .Date }}" data-category="{{ .Category }}" data-version="{{ .Version }}"><td class="periodical-index-date"><time datetime="{{ .Date }}">{{ .Date }}</time></td><td class="periodical-index-title"><h2><a href="{{ .Href }}" title="{{ .Title }}">{{ .Title }}</a></h2></td><td class="periodical-index-actions">{{ if .CanEdit }}<nav><a href="{{ .EditHref }}" title="{{ T "periodical.edit_body" }}" aria-label="{{ T "periodical.edit_body" }}">✎</a><button type="button" data-periodical-edit aria-label="{{ T "periodical.edit_metadata" }}" title="{{ T "periodical.edit_metadata" }}">⚙</button><button type="button" data-periodical-remove data-confirm="{{ T "periodical.remove_confirm" }}" title="{{ T "periodical.remove" }}" aria-label="{{ T "periodical.remove" }}">×</button></nav>{{ end }}</td></tr>{{ else }}<tr><td colspan="3">{{ T "periodical.empty" }}</td></tr>{{ end }}</tbody></table><nav class="periodical-pagination">{{ if .Previous }}<a href="{{ .Previous }}">← {{ T "periodical.previous" }}</a>{{ end }}{{ if .Next }}<a href="{{ .Next }}">{{ T "periodical.next" }} →</a>{{ end }}</nav></section>
|
||||
<aside><div class="periodical-calendar-panel"><form method="get" action="{{ .FilterAction }}" class="periodical-filters" data-periodical-filters><div class="periodical-month-controls">{{ template "periodical-month-controls" . }}<a class="periodical-filter-icon" href="{{ .BasePath }}" title="{{ T "periodical.clear" }}" aria-label="{{ T "periodical.clear" }}">{{ template "periodical-reset-icon" . }}</a></div>{{ if not .Public }}<label>{{ T "periodical.category" }} <select name="category"><option value="">{{ T "periodical.all" }}</option>{{ range .Categories }}<option {{ if eq . $.Category }}selected{{ end }}>{{ . }}</option>{{ end }}</select></label><label><input type="checkbox" name="own" value="" {{ if .Mine }}checked{{ end }}> {{ T "periodical.mine" }}</label>{{ end }}</form><section class="periodical-calendar"><header><a href="{{ .PreviousMonth }}" aria-label="{{ T "periodical.previous_month" }}">‹</a><strong>{{ .Month }}</strong><a href="{{ .NextMonth }}" aria-label="{{ T "periodical.next_month" }}">›</a></header><div class="periodical-weekdays" aria-hidden="true">{{ if eq .Locale "ja" }}<span>日</span><span>月</span><span>火</span><span>水</span><span>木</span><span>金</span><span>土</span>{{ else }}<span>Su</span><span>Mo</span><span>Tu</span><span>We</span><span>Th</span><span>Fr</span><span>Sa</span>{{ end }}</div><div class="periodical-days">{{ range .Days }}{{ if .Number }}<a href="{{ .Href }}" class="{{ if .Count }}has-entries{{ end }}" {{ if .Selected }}aria-current="date"{{ end }}>{{ .Number }}{{ if .Count }}<small aria-label="{{ T "periodical.entries" }}">{{ .Count }}</small>{{ end }}</a>{{ else }}<span></span>{{ end }}{{ end }}</div></section></div><section class="periodical-recent"><h2>{{ T "periodical.recent" }}</h2>{{ range .Recent }}<a href="{{ .Href }}"><time>{{ .Date }}</time> {{ .Title }}</a>{{ else }}<p>{{ T "periodical.empty" }}</p>{{ end }}</section></aside></div>
|
||||
{{ if not .Public }}<dialog data-periodical-composer><form><header><h2>{{ T "periodical.compose" }}</h2><button type="button" data-composer-close aria-label="{{ T "city.close" }}">×</button></header><fieldset><label>{{ T "periodical.title" }}<input name="title" required maxlength="240"></label><label>{{ T "periodical.date" }}<input type="date" name="date" required value="{{ .Today }}"></label><label>{{ T "periodical.keyword" }}<input name="keyword" maxlength="240"></label><p>{{ T "periodical.prefix" }}: <code>{{ .Prefix }}</code></p><label>{{ T "periodical.category" }}<input name="category" maxlength="80"></label><label>{{ T "periodical.body" }}<textarea name="body" rows="12" required maxlength="131072"></textarea></label><p>{{ T "periodical.compose_help" }}</p><button type="submit">{{ T "periodical.save_article" }}</button></fieldset><p role="status" data-composer-status></p></form></dialog>
|
||||
<dialog data-periodical-planner><form><header><h2>{{ T "periodical.plan" }}</h2><button type="button" data-planner-close aria-label="{{ T "city.close" }}">×</button></header><p>{{ T "periodical.prefix" }}: <code>{{ .Prefix }}</code></p><label>{{ T "periodical.date" }}<input type="date" name="date" required value="{{ .Today }}"></label><label>{{ T "periodical.keyword" }}<input name="keyword" maxlength="240"></label><button type="submit">{{ T "periodical.plan" }}</button><p data-planner-status role="status"></p><div data-planner-result hidden><p><a data-planner-editor target="_blank" rel="noopener">{{ T "periodical.open_editor" }}</a></p><p>{{ T "periodical.registration_help" }}</p><button type="button" data-planner-register>{{ T "periodical.register" }}</button></div></form></dialog>
|
||||
<dialog data-periodical-dialog><form data-periodical-entry-form><header><h2>{{ T "periodical.register" }}</h2><button type="button" data-periodical-close aria-label="{{ T "city.close" }}">×</button></header><input type="hidden" name="page_uuid"><input type="hidden" name="version" value="0"><label>Path<input name="path" required placeholder="/diary/2026/09/16" maxlength="4096"></label><label>{{ T "periodical.title" }}<input name="title" required maxlength="240"></label><label>{{ T "periodical.date" }}<input type="date" name="date" required value="{{ .Today }}"></label><label>{{ T "periodical.category" }}<input name="category" maxlength="80"></label><p>{{ T "periodical.registration_help" }}</p><button type="submit">{{ T "config.save" }}</button><p data-periodical-status role="status"></p></form></dialog>{{ end }}{{ end }}</main><script src="/static/js/periodicals.js?v=8" defer></script></body></html>{{ end }}
|
||||
<dialog data-periodical-dialog><form data-periodical-entry-form><header><h2>{{ T "periodical.register" }}</h2><button type="button" data-periodical-close aria-label="{{ T "city.close" }}">×</button></header><input type="hidden" name="page_uuid"><input type="hidden" name="version" value="0"><label>Path<input name="path" required placeholder="/diary/2026/09/16" maxlength="4096"></label><label>{{ T "periodical.title" }}<input name="title" required maxlength="240"></label><label>{{ T "periodical.date" }}<input type="date" name="date" required value="{{ .Today }}"></label><label>{{ T "periodical.category" }}<input name="category" maxlength="80"></label><p>{{ T "periodical.registration_help" }}</p><button type="submit">{{ T "config.save" }}</button><p data-periodical-status role="status"></p></form></dialog>{{ end }}{{ end }}</main><script src="/static/js/periodicals.js?v=8" defer></script>{{ template "home-appearance" . }}{{ template "home-palette" . }}</body></html>{{ end }}
|
||||
@@ -8,7 +8,7 @@
|
||||
{{ template "social-metadata" . }}
|
||||
<link rel="stylesheet" href="/static/css/theme/base.css">
|
||||
<link rel="stylesheet" href="{{ .ThemeCSS }}">
|
||||
<link rel="stylesheet" href="/static/css/home.css?v=12">
|
||||
<link rel="stylesheet" href="/static/css/home.css?v=13">
|
||||
</head>
|
||||
<body class="home-landing home-layout-{{ .HomeLayout }}{{ if eq .HomeLayout "directory" }} home-paged{{ end }}" style="--home-glass-opacity:{{ .HomeGlassOpacity }}%">
|
||||
{{ if .HomeWallpaperURL }}<img class="home-wallpaper" src="{{ .HomeWallpaperURL }}" alt="" aria-hidden="true" decoding="async" fetchpriority="high" style="opacity:{{ .HomeWallpaperOpacity }}">{{ end }}
|
||||
@@ -47,19 +47,8 @@
|
||||
{{ template "home-bookmarks" . }}
|
||||
{{ end }}
|
||||
</main>
|
||||
{{ if .CanConfigureHome }}
|
||||
<button type="button" class="home-appearance-launch" data-home-appearance-open aria-label="{{ T "home.appearance" }}" title="{{ T "home.appearance" }}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m9 3-.5 3-2 .9L4 6l-2 4 2.5 1.8v2.4L2 16l2 4 2.5-.9 2 .9.5 3h6l.5-3 2-.9L20 20l2-4-2.5-1.8v-2.4L22 10l-2-4-2.5.9-2-.9-.5-3z"/><circle cx="12" cy="13" r="3"/></svg></button>
|
||||
<dialog class="home-appearance-dialog" data-home-appearance-dialog aria-labelledby="home-appearance-title">
|
||||
<form method="post" action="/-/sys/config" data-home-appearance-form data-saved="{{ T "config.saved" }}">
|
||||
<input type="hidden" name="section" value="home-appearance">
|
||||
<header><h2 id="home-appearance-title">{{ T "home.appearance" }}</h2><button type="button" data-home-appearance-close aria-label="{{ T "picker.cancel" }}">×</button></header>
|
||||
<label>{{ T "home.glass_transparency" }}<span class="home-appearance-range"><input name="home_glass_transparency" type="range" min="0" max="85" step="1" value="{{ .HomeGlassTransparency }}"><output>{{ .HomeGlassTransparency }}%</output></span></label>
|
||||
<p class="muted">{{ T "home.glass_help" }}</p>
|
||||
<footer><span data-home-appearance-status role="status"></span><button type="button" data-home-appearance-cancel>{{ T "picker.cancel" }}</button><button type="submit">{{ T "config.save" }}</button></footer>
|
||||
</form>
|
||||
</dialog>
|
||||
<script defer src="/static/js/home-appearance.js?v=1"></script>
|
||||
{{ end }}
|
||||
{{ template "home-appearance" . }}
|
||||
{{ template "home-palette" . }}
|
||||
{{ if eq .HomeLayout "directory" }}
|
||||
<nav class="home-page-indicator" data-home-page-indicator aria-label="{{ T "home.bookmarks" }}">
|
||||
<button type="button" data-home-page-target="search" aria-current="page" aria-label="{{ T "home.search" }}"></button>
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
{{ define "home-palette-controls" }}
|
||||
<div class="home-palette-controls wide">
|
||||
<label>{{ T "home.palette_mode" }}<select name="home_palette_mode"><option value="off" {{ if eq .HomePalette.Mode "off" }}selected{{ end }}>{{ T "home.palette_off" }}</option><option value="accent" {{ if eq .HomePalette.Mode "accent" }}selected{{ end }}>{{ T "home.palette_accent" }}</option><option value="surface" {{ if eq .HomePalette.Mode "surface" }}selected{{ end }}>{{ T "home.palette_surface" }}</option></select></label>
|
||||
<label>{{ T "home.palette_strength" }}<span class="home-appearance-range"><input name="home_palette_strength" data-range-output="home-palette-strength-output" type="range" min="0" max="100" step="5" value="{{ .HomePalette.Strength }}"><output id="home-palette-strength-output" data-palette-strength>{{ .HomePalette.Strength }}%</output></span></label>
|
||||
<label>{{ T "home.palette_brightness" }}<select name="home_palette_brightness"><option value="preserve" {{ if eq .HomePalette.Brightness "preserve" }}selected{{ end }}>{{ T "home.palette_preserve" }}</option><option value="auto" {{ if eq .HomePalette.Brightness "auto" }}selected{{ end }}>{{ T "home.palette_auto" }}</option></select></label>
|
||||
<p class="muted">{{ T "home.palette_help" }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ define "home-appearance" }}
|
||||
{{ if .IsHome }}
|
||||
{{ if .CanConfigureHome }}
|
||||
<button type="button" class="home-appearance-launch" data-home-appearance-open aria-label="{{ T "home.appearance" }}" title="{{ T "home.appearance" }}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m9 3-.5 3-2 .9L4 6l-2 4 2.5 1.8v2.4L2 16l2 4 2.5-.9 2 .9.5 3h6l.5-3 2-.9L20 20l2-4-2.5-1.8v-2.4L22 10l-2-4-2.5.9-2-.9-.5-3z"/><circle cx="12" cy="13" r="3"/></svg></button>
|
||||
<dialog class="home-appearance-dialog" data-home-appearance-dialog aria-labelledby="home-appearance-title">
|
||||
<form method="post" action="/-/sys/config" data-home-appearance-form data-saved="{{ T "config.saved" }}">
|
||||
<input type="hidden" name="section" value="home-appearance">
|
||||
<header><h2 id="home-appearance-title">{{ T "home.appearance" }}</h2><button type="button" data-home-appearance-close aria-label="{{ T "picker.cancel" }}">×</button></header>
|
||||
<label>{{ T "home.glass_transparency" }}<span class="home-appearance-range"><input name="home_glass_transparency" type="range" min="0" max="85" step="1" value="{{ .HomeGlassTransparency }}"><output>{{ .HomeGlassTransparency }}%</output></span></label>
|
||||
<p class="muted">{{ T "home.glass_help" }}</p>
|
||||
{{ template "home-palette-controls" . }}
|
||||
<footer><span data-home-appearance-status role="status"></span><button type="button" data-home-appearance-cancel>{{ T "picker.cancel" }}</button><button type="submit">{{ T "config.save" }}</button></footer>
|
||||
</form>
|
||||
</dialog>
|
||||
<script defer src="/static/js/home-appearance.js?v=2"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ define "home-palette" }}
|
||||
{{ if and .IsHome .HomeWallpaperURL }}
|
||||
<div hidden data-home-palette data-mode="{{ .HomePalette.Mode }}" data-strength="{{ .HomePalette.Strength }}" data-brightness="{{ .HomePalette.Brightness }}" data-key="{{ .HomeWallpaperKey }}" data-domain="{{ .HomePaletteDomain }}"></div>
|
||||
<script defer src="/static/js/home-palette-core.js?v=1"></script>
|
||||
<script defer src="/static/js/home-palette.js?v=1"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in new issue
Block a user