{{ define "seo" }} {{ $title := "fibr" }} {{ $description := "FIle BRowser" }} {{ $url := publicURL "/" }} {{ with .Request }} {{ $title = .Title }} {{ $description = .Description }} {{ $url = publicURL (.URL "") }} {{ end }} {{ if .File }} {{ if not .File.IsDir }} {{ $url = printf "%s%s" $url "?browser" }} {{ end }} {{ end }} {{ $title }} {{ if .Cover.Img }} {{ if .File }} {{ else }} {{ end }} {{ else }} {{ end }} {{ end }}