{{- if .Site.Params.opengraph }} {{ template "_internal/opengraph.html" . }} {{- end }} {{- if .Site.Params.schema }} {{ template "_internal/schema.html" . }} {{- end }} {{- if .Site.Params.twitter_cards }} {{ template "_internal/twitter_cards.html" . }} {{- end }} {{- $googleFontsLink := .Site.Params.googleFontsLink | default "https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" }} {{- if hasPrefix $googleFontsLink "https://fonts.googleapis.com/" }} {{- end }} {{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}} {{ range .Site.Params.customCSS -}} {{- end }} {{- with .OutputFormats.Get "rss" }} {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{- end }} {{- if not .Site.IsServer }} {{- if hasPrefix .Site.GoogleAnalytics "G-" }} {{ template "_internal/google_analytics.html" . }} {{- else }} {{ template "_internal/google_analytics_async.html" . }} {{- end }} {{- end }}