{{- /* artifact.tmpl ~ A layout for the artifact page for a single file record. */ -}} {{- define "content" }} {{- $colClass := "col-12 col-md-6"}} {{- $published := index . "published"}} {{- $desc := index . "description"}} {{- $classification := brief (index . "platform") (index . "section")}} {{- $screenElm := screenshot (index . "unid") ($desc)}} {{- $screenNone := index . "noScreenshot"}} {{- $opensans := index . "openSansCheck"}} {{- $topaz := index . "topazCheck"}} {{- $vga := index . "vgaCheck"}} {{- $readmeCls := `reader-invert border border-black rounded-1 p-1`}} {{- $readmeL := index . "readmeLatin1"}} {{- $readmeLS := index . "readmeLatin1Cls"}} {{- $readmeC := index . "readmeCP437"}} {{- $readmeCS := index . "readmeCP437Cls"}} {{- $unwanted := index . "alertURL"}} {{- $noDownload := index . "noDownload"}} {{- $readmeName := index . "readmeName"}} {{- $alert := false}} {{- if or $unwanted $noDownload}}{{$alert = true}}{{end}} {{- /* Info: The title, releasers (as lead) and monospaced filename are generated by Artifact() within dirs.go context and rendered in the layout.tmpl view. */ -}}
{{$readmeL}}
{{- end -}}
{{- if $readmeC -}}
{{$readmeC}}
{{- end -}}