๐Ÿท๏ธ Site Content Labels

Last updated๏ผš2026-11-25

Copy that tenants fill in once in the admin “Site Content” and templates reference with {{.Identifier}}. Admin path: Admin โ†’ Site Content

๐Ÿ’ก Why This Layer Exists

Theme templates used to hardcode marketing copy in the HTML (e.g. “Full refund if unsatisfied, lifetime free technical support”, “Ten years of experience”). This had two consequences: when switching templates, those sentences were replaced by the new template; and promises the tenant never made were displayed on their own website, constituting false advertising.

Now this content is stored in the database, filled in once by the tenant and used site-wide, and survives template switches; unfilled positions are left empty on the front end โ€” no promises are fabricated on the tenant’s behalf. This matches the approach of mainstream CMSs: Shopify’s metafields / theme settings, Drupal’s custom blocks.

When developing new templates: always reference marketing copy via the labels in this chapter; do not hardcode sentences in the HTML.

๐Ÿ“‹ Site-wide ยท Contact Information

  • {{.Hotline}} Consultation hotline โ€” single line
  • {{.ServicePhone}} After-sales phone โ€” single line
  • {{.WorkTime}} Working hours โ€” single line
  • {{.ContactEmail}} Business cooperation email โ€” single line
  • {{.WechatAccount}} WeChat ID / official account โ€” single line
  • {{.ContactIntro}} Contact Us lead-in copy โ€” multi-line
  • {{.FooterCopyright}} Footer copyright text โ€” single line

๐Ÿ“‹ Home Page Content

  • {{.HomeHeroTitle}} Hero main title โ€” single line
  • {{.HomeHeroSubtitle}} Hero subtitle โ€” single line
  • {{.HomeHeroDesc}} Hero introduction โ€” multi-line
  • {{.HomeHeroBtnText}} Hero button text โ€” single line
  • {{.HomeIntro}} Home page company introduction โ€” multi-line
  • {{.Advantage1Title}} Core advantage 1 ยท title โ€” single line
  • {{.Advantage1Desc}} Core advantage 1 ยท description โ€” multi-line
  • {{.Advantage2Title}} Core advantage 2 ยท title โ€” single line
  • {{.Advantage2Desc}} Core advantage 2 ยท description โ€” multi-line
  • {{.Advantage3Title}} Core advantage 3 ยท title โ€” single line
  • {{.Advantage3Desc}} Core advantage 3 ยท description โ€” multi-line
  • {{.ServicePromise}} Service promise โ€” multi-line
  • {{.DeliveryCycle}} Delivery cycle โ€” single line
  • {{.ServiceFlow}} Service process โ€” multi-line
  • {{.QualityTitle}} Quality assurance ยท title โ€” single line
  • {{.CtaTitle}} Call to action ยท title โ€” single line
  • {{.CtaDesc}} Call to action ยท description โ€” multi-line

๐Ÿ“‹ Brand and Promises

  • {{.BrandSlogan}} Brand slogan โ€” single line
  • {{.ServiceIntro}} Service introduction โ€” multi-line
  • {{.ServiceConcept}} Service philosophy โ€” multi-line
  • {{.QualityDesc}} Quality assurance description โ€” multi-line
  • {{.TrustDesc}} Customer trust description โ€” multi-line
  • {{.ExperienceDesc}} Industry experience description โ€” multi-line
  • {{.RefundPromise}} Refund / after-sales promise โ€” multi-line
  • {{.PromiseList}} Promise highlights โ€” single line
  • {{.RiskPromise}} Zero-risk promise โ€” single line
  • {{.RevisePromise}} Revise-until-satisfied promise โ€” single line
  • {{.RiskPromiseTitle}} Zero-risk promise ยท title โ€” single line
  • {{.MaintenancePromise}} Free maintenance promise โ€” single line
  • {{.SeoPromise}} SEO results promise โ€” multi-line

๐Ÿ“‹ FAQ

  • {{.FaqIntro}} FAQ ยท introduction โ€” multi-line
  • {{.FaqQ1}} FAQ 1 ยท question โ€” single line
  • {{.FaqA1}} FAQ 1 ยท answer โ€” multi-line
  • {{.FaqQ2}} FAQ 2 ยท question โ€” single line
  • {{.FaqA2}} FAQ 2 ยท answer โ€” multi-line
  • {{.FaqQ3}} FAQ 3 ยท question โ€” single line
  • {{.FaqA3}} FAQ 3 ยท answer โ€” multi-line
  • {{.FaqQ4}} FAQ 4 ยท question โ€” single line
  • {{.FaqA4}} FAQ 4 ยท answer โ€” multi-line
  • {{.FaqQ5}} FAQ 5 ยท question โ€” single line
  • {{.FaqA5}} FAQ 5 ยท answer โ€” multi-line
  • {{.FaqQ6}} FAQ 6 ยท question โ€” single line
  • {{.FaqA6}} FAQ 6 ยท answer โ€” multi-line
  • {{.FaqQ7}} FAQ 7 ยท question โ€” single line
  • {{.FaqA7}} FAQ 7 ยท answer โ€” multi-line
  • {{.FaqQ8}} FAQ 8 ยท question โ€” single line
  • {{.FaqA8}} FAQ 8 ยท answer โ€” multi-line
  • {{.FaqQ9}} FAQ 9 ยท question โ€” single line
  • {{.FaqOutro}} FAQ ยท closing โ€” multi-line

๐Ÿ“‹ Testimonials

  • {{.Testimonial1}} Customer testimonial 1 โ€” multi-line
  • {{.Testimonial2}} Customer testimonial 2 โ€” multi-line
  • {{.Testimonial3}} Customer testimonial 3 โ€” multi-line

๐Ÿ“‹ About Us

  • {{.AboutIntro}} About Us ยท body โ€” multi-line
  • {{.AboutHistory}} Development history โ€” multi-line
  • {{.AboutCulture}} Company culture โ€” multi-line

๐Ÿ“‹ Contact Us

  • {{.ContactAddress}} Detailed address โ€” multi-line
  • {{.ContactNotice}} Contact page notice โ€” multi-line

๐Ÿ’ป Usage Example

<!-- Hero section -->
<h1>{{.HomeHeroTitle}}</h1>
<p>{{.HomeHeroSubtitle}}</p>
<a href="/contact" class="btn">{{.HomeHeroBtnText}}</a>

<!-- Site-wide contact info: usable in both header and footer; fill once, effective site-wide -->
<span>Hotline: {{.Hotline}}</span>
<span>Working hours: {{.WorkTime}}</span>

<!-- Don't display when unfilled (empty string is falsy in if) -->
{{if .ServicePromise}}<div class="promise">{{.ServicePromise}}</div>{{end}}

โš ๏ธ Notes

  • No fill, no display: standard fields are always injected; when unfilled they are empty strings, and the front end renders no “.
  • Conflict protection: if a custom label has the same name as a built-in variable (e.g. Title), the built-in variable wins and the label does not override it; you can still get it via {{index .Label "Title"}}.
  • Fill promise fields carefully: RefundPromise (refund promise), SeoPromise (SEO results), ExperienceDesc (years in industry) etc. involve advertising law โ€” only fill in what you can deliver.
  • Extended fields: when standard fields are not enough, add your own under the admin “Custom Labels (Extended)”; the identifier must start with a letter, followed by letters/digits/underscores.

โ† Company Info Site Info โ†’

This site uses cookies for essential functionality and to improve your experience. See our Privacy Policy.