summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJune <liumy.f@foxmail.com>2022-11-17 18:12:43 +0800
committerGitHub <noreply@github.com>2022-11-17 18:12:43 +0800
commite018919ead448ff70dd1697c03143a46ad690c71 (patch)
tree3d7392e33caecbc98ee1f4a92f495273cf39d67a
parentaf2c2c3540d42b428d34094f5815db09ac8637b5 (diff)
parent6e715d4af433c94fb322fa5dae0a793e421df7d3 (diff)
Merge pull request #18 from cbolz/gitlab-social-links
add GitLab social links
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/sns-links.html10
2 files changed, 11 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 8d2871d..91d71b1 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -94,6 +94,7 @@ facebook = "johndoe"
zhihu = "johndoe"
weibo = "johndoe"
github = "johndoe"
+gitlab = "johndoe"
linkedin = "johndoe"
[[params.friends]]
diff --git a/layouts/partials/sns-links.html b/layouts/partials/sns-links.html
index 86e986e..96f4ec2 100644
--- a/layouts/partials/sns-links.html
+++ b/layouts/partials/sns-links.html
@@ -65,6 +65,16 @@
</a>
</li>
{{ end }}
+ {{ with $social.gitlab }}
+ <li>
+ <a target="_blank" href="https://gitlab.com/{{ . }}">
+ <span class="fa-stack fa-lg">
+ <i class="fa fa-circle fa-stack-2x"></i>
+ <i class="fa fa-gitlab fa-stack-1x fa-inverse"></i>
+ </span>
+ </a>
+ </li>
+ {{ end }}
{{ with $social.linkedin }}
<li>
<a target="_blank" href="https://www.linkedin.com/in/{{ . }}">