{{include "header.html"}} {{include "nav.html"}} {{if index .ThemesExt "show_breadcrumb"}} {{if .Nav}} {{end}} {{end}} {{if .Single}} {{if .Single.Ext}} {{$banner := index .Single.Ext "banner_img"}} {{if $banner}}
{{.Single.Name}}

{{.Single.Name}}

{{end}} {{end}}
{{/* 栏目正文(后台「联系我们」栏目里填的内容)。 ⚠️ default 底稿原先只渲染表单与联系方式卡,运营在栏目里写的 联系页文案完全不可见 —— 数据在库里却不展示,等于丢功能。 */}} {{if .Single.Content}}
{{.Single.Content|Str2Html}}
{{end}}

联系方式

{{/* 联系方式读 .ThemesExt,读不到才回落占位文案。 🚨 原来这里写死 400-123-4567 / contact@example.com:装了这套主题的 每个站点都会展示同一串假号码,而主题文件升级会被覆盖回去。 留空时整行不显示 —— 显示一串打不通的电话比不显示更糟。 */}} {{$phone := index .ThemesExt "contact_phone"}} {{$email := index .ThemesExt "contact_email"}} {{$addr := index .ThemesExt "contact_address"}} {{$hours := index .ThemesExt "work_time"}}
{{if or $phone $email $addr $hours}} {{if $phone}}
☎
电话
{{$phone}}
{{end}} {{if $email}}
✉
邮箱
{{$email}}
{{end}} {{if $addr}}
⌂
地址
{{$addr}}
{{end}} {{if $hours}}
⏱
工作时间
{{$hours}}
{{end}} {{else}}

尚未填写联系方式,可在后台「主题数据 → 联系方式」中配置。

{{end}}
{{if eq 1 .Site.EnableMessage}}

给我们留言

{{if .Site.EnableCaptcha}}
点击获取验证码
{{end}}
{{end}}
{{end}} {{include "footer.html"}} {{include "js.html"}} {{if eq 1 .Site.EnableMessage}} {{end}}