Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dataCobra/hugo-vitae.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt T <datacobra@thinkbot.de>2021-09-16 09:39:15 +0300
committerGitHub <noreply@github.com>2021-09-16 09:39:15 +0300
commitda071e7d6fefc0f6a8c46c2a1019e47bd84cb473 (patch)
treef648f2a2c1fae6699687be60a74fb32e7546134b
parentce1dfd1d3dc1e298aea81ebb4120f235a02247cb (diff)
parentf47c20b29d29283d52ff0c094c862c2b676c2620 (diff)
Merge pull request #79 from leozqi/main
Show dark mode toggle when social links are not specified
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--layouts/partials/header.html4
2 files changed, 3 insertions, 2 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 9a0526d..8ca296d 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -17,3 +17,4 @@ collaboration of others.
* [David Kaufmann](https://github.com/davidkaufmann)
* [Sarath Chandra Mekala](https://github.com/sarathmekala)
* [Jeff Schoner](https://github.com/jeffschoner)
+* [Leo Qi](https://github.com/leozqi)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index a36c370..491cfe7 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -25,9 +25,9 @@
{{- else }}
<div id="title-social">
{{- end }}
-{{- if isset .Site.Params "social" }}
<div id="social">
<nav><ul>
+{{- if isset .Site.Params "social" }}
{{- range $index, $key := .Site.Params.Social }}
{{- if $key.url }}
<li><a href="{{ relURL $key.url }}"><i title="{{ $key.name }}" class="icons {{ $key.icon }}"></i></a></li>
@@ -35,10 +35,10 @@
<li><a href="{{ $key.cmd }}"><i title="{{ $key.name }}" class="icons {{ $key.icon }}"></i></a></li>
{{- end }}
{{- end }}
+{{- end }}
<li><a><i title="Switch Dark Mode" class="dark-mode icons fas fa-moon"></i></a></li>
</ul></nav>
</div>
-{{- end }}
</div>
{{- if isset .Site.Menus "main" }}
<div id="mainmenu">