Commit e023ccef authored by diamondburned (Forefront)'s avatar diamondburned (Forefront) 😶

Now iterates over social

parent 15f879b5
......@@ -27,26 +27,17 @@ description = "made by diamondburned"
icon = "fas fa-info-circle"
url = "https://diamondb.xyz/"
# < commenting a block hides its button
#[params.github]
# username = "diamondburned"
# text = ""
# icon = "fab fa-github"
[params.gitlab]
username = "diamondburned"
text = ""
icon = "fab fa-gitlab"
[params.mail]
address = "[email protected]"
text = ""
icon = "fas fa-envelope"
# v does quite a lot, it iterates
[params.social]
[params.social.gitlab] # params.social.Whatever_name_you_want
link = "https://gitlab.com/diamondburned"
text = ""
icon = "fab fa-gitlab"
[params.social.mail]
link = "mailto:[email protected]"
text = ""
icon = "fas fa-envelope"
#[params.twitter]
# username = "diamondburned"
# text = ""
# icon = "fab fa-twitter"
# v This __REQUIRES__ JavaScript. Comment the ENTIRE BLOCK if you don't like it.
[params.gitment] # https://github.com/imsun/gitment#get-started
......
......@@ -19,6 +19,18 @@
<li><a href="{{ .Site.Params.About.Url }}">
<i class="{{ .Site.Params.About.Icon }}"></i>{{ .Site.Params.About.Text }}
</a></li>
{{ if isset .Site.Params "social" }}
{{ range $social := .Site.Params.Social }}
<li>
<a href="{{ $social.link }}">
<i class="{{ $social.icon }}"></i>
{{ $social.text }}
</a>
</li>
{{ end }}
{{ end }}
<!--
{{ if isset .Site.Params "github" }}
<li><a href="https://github.com/{{ .Site.Params.Github.Username }}">
<i class="{{ .Site.Params.Github.Icon }}"></i>{{ .Site.Params.Github.Text }}
......@@ -39,6 +51,7 @@
<i class="{{ .Site.Params.Twitter.Icon }}"></i>{{ .Site.Params.Twitter.Text }}
</a></li>
{{ end }}
-->
</ul>
</h2></div>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment