set url target link to blank (#278)

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
Henzel Moras 2021-04-01 23:30:44 +05:30 committed by GitHub
parent cf4665085c
commit 23725c220c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@
<div class="card-header"> <div class="card-header">
<h5 class="card-title mb-0">{{ .name }}</h5> <h5 class="card-title mb-0">{{ .name }}</h5>
<div class="sub-title"> <div class="sub-title">
<span><a href="{{ .organization.url }}">{{ .organization.name }}</a></span> <span><a href="{{ .organization.url }}" target="_blank">{{ .organization.name }}</a></span>
<span class="ml-2">{{ .timeline }}</span> <span class="ml-2">{{ .timeline }}</span>
</div> </div>
</div> </div>

View file

@ -4,7 +4,7 @@
> >
<div class="card mt-1"> <div class="card mt-1">
<div class="card"> <div class="card">
<a class="card-header" href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}"> <a class="card-header" href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" target="_blank">
<div> <div>
<div class="d-flex"> <div class="d-flex">
{{ if .logo }} {{ if .logo }}

View file

@ -1,5 +1,5 @@
<div class="col-xs-12 col-sm-6 col-lg-4 pt-2"> <div class="col-xs-12 col-sm-6 col-lg-4 pt-2">
<a class="skill-card-link" href="{{ if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}"> <a class="skill-card-link" href="{{ if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" target="_blank">
<div class="card"> <div class="card">
<div class="card-head d-flex"> <div class="card-head d-flex">
{{ if .logo }} {{ if .logo }}

View file

@ -17,7 +17,7 @@
<h5 class="p-1"> <h5 class="p-1">
{{ .designation }} {{ .designation }}
{{ if .company }} {{ if .company }}
{{ i18n "at"}} <a href="{{ .company.url }}">{{ .company.name }}</a> {{ i18n "at"}} <a href="{{ .company.url }}" target="_blank">{{ .company.name }}</a>
{{ end }} {{ end }}
</h5> </h5>
{{ end }} {{ end }}

View file

@ -27,7 +27,7 @@
<div class="row"> <div class="row">
<div class="col-lg-10 col-md-8"> <div class="col-lg-10 col-md-8">
{{ if .institution.url }} {{ if .institution.url }}
<h5><a href="{{ .institution.url }}">{{ .institution.name }}</a></h5> <h5><a href="{{ .institution.url }}" target="_blank">{{ .institution.name }}</a></h5>
{{ else }} {{ else }}
<h5>{{ .institution.name }}</h5> <h5>{{ .institution.name }}</h5>
{{ end }} {{ end }}
@ -43,7 +43,7 @@
<h6 class="text-muted">{{ i18n "publications"}}</h6> <h6 class="text-muted">{{ i18n "publications"}}</h6>
<ul> <ul>
{{ range .publications }} {{ range .publications }}
<li><a href="{{ .url }} ">{{ .title }}</a></li> <li><a href="{{ .url }} " target="_blank">{{ .title }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>

View file

@ -1,7 +1,7 @@
<div class="col-10 col-lg-8"> <div class="col-10 col-lg-8">
<div class="experience-entry-heading"> <div class="experience-entry-heading">
<!-- For multiple positions, give emphasis on the company name--> <!-- For multiple positions, give emphasis on the company name-->
<h5>{{ if .company.url }}<a href={{.company.url}}>{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h5> <h5>{{ if .company.url }}<a href={{.company.url}} target="_blank">{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h5>
<!-- Total experience duration on a company is time between the starting date of the oldest position and ending date of most recent position --> <!-- Total experience duration on a company is time between the starting date of the oldest position and ending date of most recent position -->
{{ $oldestPosition := index (last 1 .positions) 0}} {{ $oldestPosition := index (last 1 .positions) 0}}

View file

@ -3,7 +3,7 @@
{{ $position:= index .positions 0 }} {{ $position:= index .positions 0 }}
<!-- For single position, give emphasis on the designation--> <!-- For single position, give emphasis on the designation-->
<h5>{{ $position.designation }}</h5> <h5>{{ $position.designation }}</h5>
<h6>{{ if .company.url }}<a href={{.company.url}}>{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h6> <h6>{{ if .company.url }}<a href={{.company.url}} target="_blank">{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h6>
<!-- Add experience duration info --> <!-- Add experience duration info -->
<p class="text-muted">{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }}, <p class="text-muted">{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }},
{{ .company.location }} {{ .company.location }}