Skip to content

Commit

Permalink
Merge pull request #77 from MichalLauer/master
Browse files Browse the repository at this point in the history
Optionally open resume in a new tab
  • Loading branch information
gurusabarish authored Nov 21, 2022
2 parents 143b5f6 + 0959b9c commit 5a872cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ params:
name: "Resume"
url: "#"
download: true
newPage: true
socialLinks:
fontAwesomeIcons:
- icon: fab fa-github
Expand Down
5 changes: 4 additions & 1 deletion layouts/partials/sections/hero/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ <h3>
<div class="row">
<div class="col-auto h-100">
{{ if .Site.Params.hero.button.enable }}
<a href="{{ .Site.Params.hero.button.url }}" class="btn" {{ cond .Site.Params.hero.button.download "download" "" }}>
<a href="{{ .Site.Params.hero.button.url }}" class="btn" {{ cond .Site.Params.hero.button.download "download" "" }}
{{ if .Site.Params.hero.button.newPage | default true }}
target="_blank"
{{ end }}>
{{ .Site.Params.hero.button.name }}
</a>
{{ end }}
Expand Down

0 comments on commit 5a872cf

Please sign in to comment.