{{ define "seo" }} {{ $title := "fibr" }} {{ $description := "FIle BRowser" }} {{ $url := "/" }} {{ if .File }} {{ if not .File.IsDir }} {{ $url = .File.URL }} {{ end }} {{ end }} {{ with .Request }} {{ $title = .Title }} {{ $description = .Description }} {{ $url = .AbsoluteURL $url }} {{ end }} {{ $url = publicURL $url }} {{ $title }} {{ $needCover := true }} {{ if .File }} {{ if .File.IsVideo }} {{ end }} {{ if .File.HasThumbnail }} {{ $needCover = false }} {{ end }} {{ end }} {{ if $needCover }} {{ if .Cover.Img }} {{ if .Cover.Img.IsVideo }} {{ end }} {{ else }} {{ end }} {{ end }} {{ end }}