+ Adding socials to social link cluster

* Fixing broken socials.html partial
Simply had to pass the partial the top level context
This commit is contained in:
shockrah 2021-12-09 11:13:32 -08:00
parent b749feb984
commit 39cf167b11
4 changed files with 15 additions and 11 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ resources/
public/
*.swp
.hugo_build.lock
msg

View File

@ -16,6 +16,8 @@ title = "My personal portfolio"
# Social medias
linkedin = "https://www.linkedin.com/in/alejandro-santillana-foss/"
gitlab = "https://gitlab.com/shockrah"
twitch = "https://twitch.tv/shockrah"
mastodon = "https://qoto.org/@shockrah"
# Skills or something idk

View File

@ -28,17 +28,7 @@
<div class="headline">
<h1 class="headline-title reveal-text">{{.Site.Title}}</h1>
<p class="one-liner reveal-text">{{.Site.Params.Description}}</p>
<!-- TODO: move this into a partial for better control -->
{{ if .Site.Params.Gitlab }}
<a class="socials reveal-text" href="{{.Site.Params.Gitlab}}">
<i class="fab fa-gitlab"></i>
</a>
{{ end }}
{{ if .Site.Params.Linkedin }}
<a class="socials reveal-text" href="{{.Site.Params.Linkedin}}">
<i class="fab fa-linkedin-in"></i>
</a>
{{ end }}
{{ partial "socials.html" . }}
</div>
</div>

View File

@ -8,3 +8,14 @@
<i class="fab fa-linkedin-in"></i>
</a>
{{ end }}
{{ if .Site.Params.Twitch }}
<a class="socials" href="{{.Site.Params.Twitch}}">
<i class="fab fa-twitch"></i>
</a>
{{ end }}
{{ if .Site.Params.Mastodon }}
<a class="socials" href="{{.Site.Params.Mastodon}}">
<i class="fab fa-mastodon"></i>
</a>
{{ end }}