Kaynağa Gözat

set url target link to blank (#278)

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
Henzel Moras 4 yıl önce
ebeveyn
işleme
23725c220c

+ 1 - 1
layouts/partials/cards/accomplishments.html

@@ -3,7 +3,7 @@
     <div class="card-header">
       <h5 class="card-title mb-0">{{ .name }}</h5>
       <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>
       </div>
     </div>

+ 1 - 1
layouts/partials/cards/project.html

@@ -4,7 +4,7 @@
 >
   <div class="card mt-1">
     <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 class="d-flex">
             {{ if .logo }}

+ 1 - 1
layouts/partials/cards/skill.html

@@ -1,5 +1,5 @@
 <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-head d-flex">
         {{ if .logo }}

+ 1 - 1
layouts/partials/sections/about.html

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

+ 2 - 2
layouts/partials/sections/education.html

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

+ 1 - 1
layouts/partials/sections/experiences/multiple-positions.html

@@ -1,7 +1,7 @@
 <div class="col-10 col-lg-8">
     <div class="experience-entry-heading">
         <!-- 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 -->
         {{ $oldestPosition := index (last 1 .positions) 0}}

+ 1 - 1
layouts/partials/sections/experiences/single-position.html

@@ -3,7 +3,7 @@
         {{ $position:= index .positions 0 }}
         <!-- For single position, give emphasis on the designation-->
         <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 -->
         <p class="text-muted">{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }},
             {{ .company.location }}