Skip to content
Snippets Groups Projects
social.html 1.87 KiB
Newer Older
alexisben's avatar
alexisben committed
{{ $menu := partial "GetMenu" "social" }}
Olivia206's avatar
Olivia206 committed
{{ $site_social_links := index site.Data.website.social }}
Olivia206's avatar
Olivia206 committed

{{ if $menu }}
  {{ partial "commons/menu.html"
    (dict
      "kind"        "social"
      "level"       1
      "class"       "nav-social"
  )}}
{{ end }}

{{ if $site_social_links }}
  <ul class="footer-social site-links">
    {{ with $site_social_links.mastodon}}
    <li class="mastodon">
      <a href="{{ . }}" rel="noreferrer" title="Mastodon" target="_blank">Mastodon</a>
    </li>
    {{ end}}
Olivia206's avatar
Olivia206 committed
    {{ with $site_social_links.peertube}}
    <li class="peertube">
      <a href="{{ . }}" rel="noreferrer" title="Peertube" target="_blank">Peertube</a>
    </li>
    {{ end}}
Olivia206's avatar
Olivia206 committed
    {{ with $site_social_links.x}}
    <li class="x">
Olivia206's avatar
Olivia206 committed
      <a href="{{ . }}" rel="noreferrer" title="X, ex-Twitter" target="_blank">X (ex-Twitter)</a>
    </li>
    {{ end}}
Olivia206's avatar
Olivia206 committed
    {{ with $site_social_links.linkedin}}
    <li class="linkedin">
      <a href="{{ . }}" rel="noreferrer" title="LinkedIn" target="_blank">LinkedIn</a>
    </li>
    {{ end}}
Olivia206's avatar
Olivia206 committed
    {{ with $site_social_links.youtube}}
    <li class="youtube">
      <a href="{{ . }}" rel="noreferrer" title="Youtube" target="_blank">Youtube</a>
    </li>
    {{ end}}
Olivia206's avatar
Olivia206 committed
    {{ with $site_social_links.vimeo}}
    <li class="vimeo">
      <a href="{{ . }}" rel="noreferrer" title="Vimeo" target="_blank">Vimeo</a>
    </li>
    {{ end}}
Olivia206's avatar
Olivia206 committed
    {{ with $site_social_links.instagram}}
    <li class="instagram">
      <a href="{{ . }}" rel="noreferrer" title="Instagram" target="_blank">Instagram</a>
    </li>
    {{ end}}
Olivia206's avatar
Olivia206 committed
    {{ with $site_social_links.facebook}}
    <li class="facebook">
      <a href="{{ . }}" rel="noreferrer" title="" target="_blank">Facebook</a>
    </li>
    {{ end}}
Olivia206's avatar
Olivia206 committed
    {{ with $site_social_links.tiktok}}
    <li class="tiktok">
      <a href="{{ . }}" rel="noreferrer" title="TikTok" target="_blank">TikTok</a>
    </li>
    {{ end}}
  </ul>
Olivia206's avatar
Olivia206 committed
{{ end }}