mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: allow using ui.name
This commit is contained in:
1 parent
bb67a39e58
commit
588fd0e1fb
14 files changed
+20
-16
No files matched your search
@@ -19,7 +19,7 @@
|
||||
<link rel="icon" type="image/png" href="{{ static_url('favicon-16x16.png') }}" sizes="16x16">
|
||||
<meta name="theme-color" content="#56758f">
|
||||
{% block ogp %}
|
||||
<meta property="og:site_name" content="{{ model.system.get('server.name') }}" />
|
||||
<meta property="og:site_name" content="{{ handler.domain.ui.name|default(model.system.get('server.name')) }}" />
|
||||
<meta property="og:title" content="{{ handler.renderTitle(page_name) }}" />
|
||||
<meta property="og:url" content="{{ model.system.get('server.url') }}{{ handler.ctx.request.path }}" />
|
||||
<meta property="og:image" content="{{ static_url('favicon-96x96.png') }}" />
|
||||
|
||||
@@ -18,7 +18,7 @@ body, .hydro { margin:0;color:#333;font-size:14px;font-family:"Tahoma","Segoe UI
|
||||
</style>
|
||||
<div class="hydro">
|
||||
<div class="hydro-box">
|
||||
<div class="hydro-header">{% block title %}{% endblock %} - {{ model.system.get('server.name') }}</div>
|
||||
<div class="hydro-header">{% block title %}{% endblock %} - {{ handler.domain.ui.name|default(model.system.get('server.name')) }}</div>
|
||||
<div class="hydro-content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user