Files
pages/templates/partials/social_metadata.gohtml
Anya Tokugawa c1175d389f Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming.

Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
2026-09-27 14:44:43 +09:00

22 lines
1.1 KiB
Go Template

{{ define "social-metadata" }}{{ with .SocialMetadata }}
{{ if .NoIndex }}<meta name="robots" content="noindex, nofollow, noarchive">
{{ else }}<link rel="canonical" href="{{ .URL }}">
<meta name="description" content="{{ .Description }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ .Title }}">
<meta property="og:description" content="{{ .Description }}">
<meta property="og:url" content="{{ .URL }}">
<meta property="og:site_name" content="{{ .SiteName }}">
<meta property="og:locale" content="{{ .Locale }}">
<meta property="og:image" content="{{ .Image }}">
<meta property="og:image:type" content="{{ .ImageType }}">
<meta property="og:image:alt" content="{{ .ImageAlt }}">
{{ if .ImageWidth }}<meta property="og:image:width" content="{{ .ImageWidth }}">
<meta property="og:image:height" content="{{ .ImageHeight }}">{{ end }}
<meta name="twitter:card" content="{{ .Card }}">
<meta name="twitter:title" content="{{ .Title }}">
<meta name="twitter:description" content="{{ .Description }}">
<meta name="twitter:image" content="{{ .Image }}">
<meta name="twitter:image:alt" content="{{ .ImageAlt }}">
{{ end }}{{ end }}{{ end }}