HUGO

Need little help to create a download button

Hello I need some help to create a donwload button. Here is my html code in my markdwon page :

<a class="button primary big" href="/Builds.rar" download="Builds.rar" target="_blank" >Character Controller Test</a>

And my file is located at the root of my website
image

But it is not downloading when i click the button :confused:

Thanks in advance for your help

Place the file in the static directory. See:
https://gohugo.io/content-management/static-files

1 Like

Thanks a lot @jmooring