{{ partial "assets" . }} {{ if .Params.redirect_to }} {{ $delay := 0 }} {{/* https://developers.google.com/search/docs/advanced/crawling/301-redirects#metarefresh */}} {{ if .Params.redirect_temporarily }} {{ $delay = 1 }} {{ end }} {{ end }} {{ if eq .Params.block_external_search_index true }} {{ end }} {{ if .Data.Singular }} {{ end }} {{ if .Params.event_data }} {{ end }} {{ $ogImage := "/logos/brand/og-default.png" }} {{ $twitterImage := "/logos/brand/twitter-summary.png" }} {{ $twitterCardType := "summary" }} {{ if .Params.meta_image }} {{ if in "blog templates" .Section }} {{ $ogImage = (.Resources.GetMatch .Params.meta_image).RelPermalink }} {{ else }} {{ $ogImage = .Params.meta_image }} {{ end }} {{ $twitterImage = $ogImage }} {{ $twitterCardType = "summary_large_image" }} {{ end }} {{ if .Params.meta_twitter_creator }} {{ else if .Params.authors }} {{ range $idx, $authorName := .Params.authors }} {{ $authorData := index $.Site.Data.team.team $authorName }} {{ with $authorData.social }} {{ with .twitter }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if .Params.meta_title }} {{ else if .Params.title }} {{ else }} {{ end }} {{ if .Params.meta_desc }} {{ else if and .IsHome .Site.Params.meta_desc }} {{ else if .Summary }} {{ end }} {{ if .IsHome }} {{ .Site.Title }} {{ else if .Title }} {{ $title := .Title }} {{ if .Params.title_tag }} {{ $title = .Params.title_tag }} {{ end }} {{ if and (eq .Type "blog") .IsPage }} {{ $title }} | Pulumi Blog {{ else if eq .Type "blog" }} {{ if gt $.Paginator.PageNumber 1 }} {{ $title }} | Page {{$.Paginator.PageNumber}} | Pulumi Blog {{ else }} {{ $title }} | Pulumi Blog {{ end }} {{ else if eq .Type "docs" }} {{ $title }} | Pulumi Docs {{ else if eq .Type "registry" }} {{ replace $title "/" "." }} | Pulumi Registry {{ else }} {{ $title }} | Pulumi {{ end }} {{ else if not (or .Params.redirect_to .Params.private) }} {{ end }} {{ if .Params.canonical_url }} {{ else }} {{ end }} {{- if eq hugo.Environment "production" }} {{- end }} {{ if and (not .IsHome) (.Section) (in "docs blog authors tags registry" .Section) }} {{ end }} {{/* Tests to enforce required frontmatter for certain content types. */}} {{ if and (eq .Type "blog") (eq .BundleType "leaf") .IsPage }} {{ if not .Params.authors }} {{ errorf "Blog posts require authors: %s" .File.Path }} {{ else }} {{ range $authorID := .Params.authors }} {{ if not (index $.Site.Data.team.team $authorID) }} {{ errorf "Blog posts author (%s) not found: %s" $authorID $.Page.File.Path }} {{ end }} {{ end }} {{ end }} {{ if not .Params.tags }} {{ errorf "Blog posts require tags: %s" .File.Path }} {{ end }} {{ end }}