diff options
-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 7fe0cea..261d12f 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 }}
|