高安全性的内容管理系统
一站式建站解决方案
高性能静态网站构建工具
精美的网站模板库
详细的模板开发指南
完整的API接口说明
直观的视频使用指南
常见问题解答集锦
最新产品动态与行业资讯
了解我们的故事
获取支持与合作
说明:用于获取系统配置信息
使用方法:{% system 变量名称 with name="字段名称" %},变量名称不是必须的,设置了变量名称后,后续可以通过变量名称来调用,而不设置变量名称,则是直接输出结果。
{% system 变量名称 with name="字段名称" %}
siteId
name 参数可用的字段名称有:
SiteName
SiteLogo
SiteIcp
SiteCopyright
BaseUrl
MobileUrl
TemplateUrl
TemplateName
SiteCloseTips
Language
后台自定义设置的参数名
标签用法:{% system with name="SiteName" %}
{% system with name="SiteName" %}
{# 默认用法 #} <div>网站名称:{% system with name="SiteName" %}</div> {# 自定义名称调用 #} <div>网站名称:{% system siteName with name="SiteName" %}{{siteName}}</div>
标签用法:{% system with name="SiteLogo" %}
{% system with name="SiteLogo" %}
{# 默认用法 #} <img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" /> {# 自定义名称调用 #} <img src="{% system siteLogo with name="SiteLogo" %}{{siteLogo}}" alt="{% system siteName with name="SiteName" %}{{siteName}}" />
标签用法:{% system with name="SiteIcp" %}
{% system with name="SiteIcp" %}
{# 默认用法 #} <p><a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a> ©2021 kandaoni.com. All Rights Reserved</p> {# 自定义名称调用 #} <p><a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system siteIcp with name="SiteIcp" %}{{siteIcp}}</a> ©2021 kandaoni.com. All Rights Reserved</p>
标签用法:{% system with name="SiteCopyright" %}
{% system with name="SiteCopyright" %}
{# 默认用法 #} <div>{% system with name="SiteCopyright" %}</div> {# 自定义名称调用 #} <div>{% system siteCopyright with name="SiteCopyright" %}{{siteCopyright|safe}}</div>
标签用法:{% system with name="BaseUrl" %}
{% system with name="BaseUrl" %}
{# 默认用法 #} <div>首页地址:{% system with name="BaseUrl" %}</div> {# 自定义名称调用 #} <div>首页地址:{% system baseUrl with name="BaseUrl" %}{{baseUrl|safe}}</div>
标签用法:{% system with name="MobileUrl" %}
{% system with name="MobileUrl" %}
{# 默认用法 #} <div>移动端地址:{% system with name="MobileUrl" %}</div> {# 自定义名称调用 #} <div>移动端地址:{% system mobileUrl with name="MobileUrl" %}{{mobileUrl|safe}}</div>
标签用法:{% system with name="TemplateUrl" %}
{% system with name="TemplateUrl" %}
{# 默认用法 #} <link href="{% system with name="TemplateUrl" %}/css/style.css" rel="stylesheet"> {# 自定义名称调用 #} <div>静态文件地址:{% system templateUrl with name="TemplateUrl" %}{{templateUrl|safe}}</div>
标签用法:{% system with name="Language" %}
{% system with name="Language" %}
{# 默认用法 #} <html lang="{% system with name='Language' %}">
标签用法:{% now "2006" %}
{% now "2006" %}
后面的 2006 是时间格式化字符串,格式为 Golang 支持的格式。
仅仅显示年: {% now "2006" %} 显示年月日 {% now "2006-01-02" %} 显示年月日时分秒 {% now "2006-01-02 15:04:05" %}