diff options
author | Oscar Lopez <oscareduardolp6@gmail.com> | 2022-08-18 01:24:03 +0300 |
---|---|---|
committer | Oscar Lopez <oscareduardolp6@gmail.com> | 2022-08-18 01:24:03 +0300 |
commit | 55d38a0ea35151adcd1229f6ec3b7a2c348de865 (patch) | |
tree | 49294305020ee41362353b17577018901af9c740 | |
parent | a17736285164e678d6480ddd876474de4aaaedf7 (diff) |
Added option to download the resume.pdf
-rw-r--r-- | exampleSite/config.yaml | 1 | ||||
-rw-r--r-- | layouts/partials/sections/hero/index.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 7c21f3b..01bdacc 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -108,6 +108,7 @@ params: enable: true
name: "Resume"
url: "#"
+ download: true
socialLinks:
fontAwesomeIcons:
- icon: fab fa-github
diff --git a/layouts/partials/sections/hero/index.html b/layouts/partials/sections/hero/index.html index ebb34a9..c915674 100644 --- a/layouts/partials/sections/hero/index.html +++ b/layouts/partials/sections/hero/index.html @@ -18,7 +18,7 @@ <div class="row">
<div class="col-auto h-100">
{{ if .Site.Params.hero.button.enable }}
- <a href="{{ .Site.Params.hero.button.url }}" class="btn">
+ <a href="{{ .Site.Params.hero.button.url }}" class="btn" {{ cond .Site.Params.hero.button.download "download" "" }}>
{{ .Site.Params.hero.button.name }}
</a>
{{ end }}
|