{{ .Site.Title }}

{{ $permalink := cond (eq (len .RelPermalink) 1) .RelPermalink (strings.TrimRight "/" .RelPermalink) }}
    {{ range .Site.Menus.main }}
  • {{ .Name }} {{ if strings.HasPrefix .URL "http" }} {{- partial "icon/externalIcon.html" . -}} {{ end }}
  • {{ end }}
{{ if .Site.Params.newsletter }} {{- partial "newsletter-widget.html" . -}} {{ end }}
    {{ range .Site.Menus.social }}
  • {{ .Name }} {{ if eq .Name "GitHub" }} {{- partial "icon/githubIcon.html" . -}} {{ else if eq .Name "Keybase" }} {{- partial "icon/keybaseIcon.html" . -}} {{ else if eq .Name "Twitter" }} {{- partial "icon/twitterIcon.html" . -}} {{ else if eq .Name "LinkedIn" }} {{- partial "icon/linkedinIcon.html" . -}} {{ else if eq .Name "Instagram" }} {{- partial "icon/instagramIcon.html" . -}} {{ else if eq .Name "Dribbble" }} {{- partial "icon/dribbbleIcon.html" . -}} {{ else if eq .Name "Codepen" }} {{- partial "icon/codepenIcon.html" . -}} {{ else if eq .Name "Twitch" }} {{- partial "icon/twitchIcon.html" . -}} {{ else if eq .Name "Email" }} {{- partial "icon/emailIcon.html" . -}} {{ else if eq .Name "RSS" }} {{- partial "icon/rssfeedIcon.html" . -}} {{ end }}
  • {{ end }}