{{- $baseurl := absURL "" }}
{{- $includeLiteYT := false }}
{{- if .IsNode }}
{{- range .Pages }}
{{- range .Pages }}
{{- $rawsummary := split .RawContent "" }}
{{- if (findRE "liteyoutube" (index $rawsummary 0)) }}
{{- $includeLiteYT = true }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- if (.HasShortcode "liteyoutube") }}
{{- $includeLiteYT = true }}
{{- end }}
{{- if $includeLiteYT }}
{{- $styles := printf "%s/css/lite-yt-embed.css" $baseurl }}
{{- $scripts := printf "%s/js/lite-yt-embed.js" $baseurl }}
{{- end -}}