Skip to content
Snippets Groups Projects
Commit c15b6b36 authored by Vincent Manuel Menke's avatar Vincent Manuel Menke
Browse files

feat: open protocol in new tab

parent eef8f57c
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
{{ if in .Name ".pdf" }} {{ if in .Name ".pdf" }}
<!-- todo fix this shit--> <!-- todo fix this shit-->
{{ $url := printf "%s%s%s" (urls.AbsURL $path) $name .Name }} {{ $url := printf "%s%s%s" (urls.AbsURL $path) $name .Name }}
<div><a href="{{ $url }}" download> {{ .Name | strings.TrimSuffix ".pdf" }} </a></div> <div><a href="{{ $url }}" target="_blank" download> {{ .Name | strings.TrimSuffix ".pdf" }} </a></div>
{{ end }} {{ end }}
{{ end}} {{ end}}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment