Переглянути джерело

Refactor target values of redirections to external pages (#292)

Tommy Chu 4 роки тому
батько
коміт
d38634df8d
2 змінених файлів з 3 додано та 3 видалено
  1. 1 1
      layouts/_default/single.html
  2. 2 2
      layouts/partials/footer.html

+ 1 - 1
layouts/_default/single.html

@@ -59,7 +59,7 @@
         <!--- Improve this page button --->
         {{ if site.Params.GitRepo }}
           <div class="btn-improve-page">
-              <a href="{{ site.Params.GitRepo }}/edit/{{ site.Params.GitBranch }}/content/{{ .File.Path }}">
+              <a href="{{ site.Params.GitRepo }}/edit/{{ site.Params.GitBranch }}/content/{{ .File.Path }}" target="_blank">
                 <i class="fas fa-code-branch"></i>
                 {{ i18n "improve_this_page" }}
               </a>

+ 2 - 2
layouts/partials/footer.html

@@ -92,14 +92,14 @@
   <div class="container">
     <div class="row text-left">
       <div class="col-md-4">
-        <a id="theme" href="https://github.com/hossainemruz/toha" target="#">
+        <a id="theme" href="https://github.com/hossainemruz/toha" target="_blank">
           <img src="{{ $themeLogo }}" alt="Toha Theme Logo">
           Toha
         </a>
       </div>
       <div class="col-md-4 text-center">{{ $copyrightNotice | markdownify }}</div>
       <div class="col-md-4 text-right">
-        <a id="hugo" href="https://gohugo.io/">{{ i18n "hugoAttributionText" }}
+        <a id="hugo" href="https://gohugo.io/" target="_blank">{{ i18n "hugoAttributionText" }}
         <img
           src="{{ $hugoLogo }}"
           alt="Hugo Logo"