Merge pull request #77 from MichalLauer/master

Optionally open resume in a new tab
This commit is contained in:
Guru Sabarish
2022-11-21 17:05:29 +05:30
committed by GitHub
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -112,6 +112,7 @@ params:
name: "Resume" name: "Resume"
url: "#" url: "#"
download: true download: true
newPage: true
socialLinks: socialLinks:
fontAwesomeIcons: fontAwesomeIcons:
- icon: fab fa-github - icon: fab fa-github
+4 -1
View File
@@ -18,7 +18,10 @@
<div class="row"> <div class="row">
<div class="col-auto h-100"> <div class="col-auto h-100">
{{ if .Site.Params.hero.button.enable }} {{ 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 }} {{ .Site.Params.hero.button.name }}
</a> </a>
{{ end }} {{ end }}