๐ŸŒ Site Info

Last updated๏ผš2026-11-25

Globally available site configuration information. Admin path: Admin โ†’ Basic Settings โ†’ Site Info

๐Ÿ“‹ Field Quick Reference

Site info fields are all global variables, readable directly in any front-end template, corresponding to the configuration under the admin “Basic Settings โ†’ Site Info”. Common needs and their fields:

Common Need Field
Site name / subtitle {{.SiteTitle}} / {{.SiteSubtitle}}
Site domain (with protocol) {{.SiteDomain}}
Site logo {{.SiteLogo}}
Site-wide SEO keywords / description {{.SiteKeywords}} / {{.SiteDescription}}
ICP filing number / copyright info {{.SiteIcp}} / {{.SiteCopyright}}
Analytics code {{.SiteStatistical}}
Contact / About page links {{.SiteContactURL}} / {{.SiteAboutURL}}
Current language / entry URL {{.SiteLanguage}} / {{.SiteHomeURL}}

For the complete field list (with type tags), see “Available Fields” below; for page-level SEO fields, see “Page-level SEO Tags”.

๐Ÿ“‹ Available Fields

  • {{.SiteTitle}} Site title (company/website name) โ€” text
  • {{.SiteSubtitle}} Site subtitle โ€” text
  • {{.SiteDomain}} Site domain โ€” text
  • {{.SiteLogo}} Site logo image URL โ€” image
  • {{.SiteKeywords}} Site SEO keywords โ€” SEO
  • {{.SiteDescription}} Site SEO description โ€” SEO
  • {{.SiteIcp}} ICP filing number โ€” text
  • {{.SiteCopyright}} Copyright info โ€” text
  • {{.SiteStatistical}} Analytics code (third-party analytics JS) NEW โ€” HTML
  • {{.SiteLanguage}} Site language (e.g. zh-CN, en) NEW โ€” text
  • {{.SiteContactURL}} Contact Us link NEW โ€” URL
  • {{.SiteAboutURL}} About Us link NEW โ€” URL
  • {{.SiteCode}} Site code (e.g. zh, en) NEW โ€” text
  • {{.SiteID}} Site ID (used by the site= parameter of free tags) NEW โ€” number
  • {{.SitePrefix}} Site path prefix (empty for the root site, /en for subsites) NEW โ€” text
  • {{.SiteHomeURL}} Full site entry address (with prefix) NEW โ€” URL
  • {{.SiteOGImage}} Social share OG image URL (for SEO/GEO) NEW โ€” image
  • {{.SiteJSONLD}} Site structured data JSON-LD (already safeHTML, output directly) NEW โ€” HTML

๐Ÿท๏ธ Page-level SEO Tags NEW

Per-page SEO settings with higher priority than the site-wide global SEO tags. - {{.PageTitle}} Current page SEO title (used in )SEO

{{.PageKeywords}}Current page SEO keywords (overrides global keywords)SEO
{{.PageDescription}}Current page SEO description (overrides global description)SEO

๐Ÿ“– Title Generation Rules

Page TypeTitle FormatExample
Home pageSiteTitle - SiteSubtitleTiantian Technology - Professional Website Design and Digital Marketing
List pagePage description - SiteTitleReal Cases - Tiantian Technology
Detail pageSEO title > Content title - SiteTitleElderly-care Companion Site Development - Tiantian Technology
Category pageCategory SEO title > Category name - SiteTitleCorporate Site SEO - Tiantian Technology