Przeglądaj źródła

Hide "My Resume" button in case the information is missing in config

Hide "My Resume" button in case the information is missing in config
Jean-Baptiste Le Duigou 4 lat temu
rodzic
commit
1b99e81671
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      layouts/partials/about.html

+ 2 - 0
layouts/partials/about.html

@@ -23,9 +23,11 @@
               {{ end }}
               {{ end }}
             </ul>
             </ul>
           </div>
           </div>
+          {{ if .Site.Data.about.resume }}
           <a href="{{ .Site.Data.about.resume }}" target="#"
           <a href="{{ .Site.Data.about.resume }}" target="#"
             ><button class="btn btn-dark">My Resume</button></a
             ><button class="btn btn-dark">My Resume</button></a
           >
           >
+          {{ end }}
         </div>
         </div>
         <!-- soft skills circular-progressbar -->
         <!-- soft skills circular-progressbar -->
         <div class="col-md-6 pt-5 pl-md-4 pl-sm-3 pt-md-0">
         <div class="col-md-6 pt-5 pl-md-4 pl-sm-3 pt-md-0">