forked from jakub/jakubb-hugo
13 lines
327 B
HTML
13 lines
327 B
HTML
|
{{ $file:= .Get "file" }}
|
||
|
{{ if not (resources.Get $file) }}
|
||
|
{{ errorf "Error: 'file' is a required parameter." }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{- with .Get "message" -}}
|
||
|
<p>{{- . -}}</p>
|
||
|
{{- end -}}
|
||
|
|
||
|
{{- with resources.Get $file -}}
|
||
|
<a class="button" href="{{ .RelPermalink }}" download>Download {{ path.Ext $file }}</a>
|
||
|
{{- end -}}
|