{{ if eq .Kind "page" }} {{ else }} {{ end }} {{ if or (eq .Kind "list") (eq .Kind "term") }} {{ end }} {{ range $stylesheet := .Resources.Match "*.css" }} {{ end }} {{ if in (.Site.BaseURL | string) "localhost" }} {{ end }} {{ if .IsPage }} {{ end }} {{ range $.Scratch.Get "social-list" }} {{ end }} {{ hugo.Generator }} {{ range .AlternativeOutputFormats }} {{ end }} {{ if and .IsPage (.Page.Scratch.Get "includes_railroad_diagram") }} {{ end }} {{ if and .IsPage (.Page.Scratch.Get "includes_p5_sketch") }} {{ end }} {{ range $script := .Resources.Match "*.js" }} {{ end }} {{ if or hugo.IsProduction (eq site.Params.env "production") }} {{ template "_internal/schema.html" . }} {{ template "_internal/twitter_cards.html" . }} {{ end }}