{{- $isHome := .IsHome }} {{- $isSpirePage := eq .Section "spire" }} {{- $isDownloadsPage := eq .Section "downloads" }} {{- $isDocsPage := eq .Section "docs" }} {{- $spiffeLogo := "/img/logos/spiffe/horizontal/color/spiffe-horizontal-color.png" | relURL }} {{- $spireLogo := "/img/logos/spire/horizontal/color/spire-horizontal-color.png" | relURL }} {{- $logoUrl := cond $isSpirePage $spireLogo $spiffeLogo }} {{- $social := .Site.Params.socialmedia }} {{- $twitterUrl := printf "https://twitter.com/%s" $social.twitter }} {{- $slackUrl := $social.slack }} {{- $blogUrl := $social.medium }} {{- $githubUrl := $social.github }} {{- $stackUrl := $social.stackoverflow }} {{- $youtubeUrl := $social.youtube }} {{- $version := index (split .File.Path "/") 1 -}} {{- $pageUrl := .URL -}} {{ $spiffeAbout := where site.Pages ".Params.kind" "eq" "spiffe-about" }} {{ $spireAbout := where site.Pages ".Params.kind" "eq" "spire-about" }} {{ $spireHelmChartsHardenedAbout := where site.Pages ".Params.kind" "eq" "spire-helm-charts-hardened-about" }} {{ $spireHelmChartsHardenedAdvanced := where site.Pages ".Params.kind" "eq" "spire-helm-charts-hardened-advanced" }} {{ $spirePlanning := where site.Pages ".Params.kind" "eq" "planning" }} {{ $spireTry := where site.Pages ".Params.kind" "eq" "try" }} {{ $spireDeploying := where site.Pages ".Params.kind" "eq" "deploying" }} {{ $spireMaintenance := where site.Pages ".Params.kind" "eq" "maintenance" }} {{ $spireArchitecture := where site.Pages ".Params.kind" "eq" "architecture" }} {{ $spireMicroservices := where site.Pages ".Params.kind" "eq" "microservices" }} {{ $spireKeyless := where site.Pages ".Params.kind" "eq" "keyless" }}