{%- macro draw_icons(icons) -%}
{%- for icon in icons -%} {%- if icon.link is defined -%}{%- set link = icon.link -%}{%- else -%}{%- set link = true -%}{%- endif -%} {%- if link == false -%}{%- set class = "nolink" -%}{%- else -%}{%- set class = "" -%}{%- endif -%}
{%- if link == false -%} {%- endif -%}
{%- if not loop.last -%} {%- endif -%} {%- endfor -%}
{%- endmacro draw_icons -%} {%- macro draw_svg(icon) -%} {#- Adapted from https://github.com/rhazdon/hugo-theme-hello-friend-ng/blob/master/layouts/partials/svg.html -#} {%- if icon == "amazon" -%} {%- elif icon == "anilist" -%} {%- elif icon == "box" -%} {%- elif icon == "behance" -%} {%- elif icon == "bitbucket" -%} {%- elif icon == "case" -%} {%- elif icon == "chess" -%} {%- elif icon == "codeberg" -%} {%- elif icon == "codesandbox" -%} {%- elif icon == "codechef" -%} {%- elif icon == "codepen" -%} {%- elif icon == "csgo" -%} {%- elif icon == "cyberdefenders" -%} {%- elif icon == "dev" -%} {%- elif icon == "deviantart" -%} {%- elif icon == "discogs" -%} {%- elif icon == "discord" -%} {%- elif icon == "dribbble" -%} {%- elif icon == "docker" -%} {%- elif icon == "duolingo" -%} {%- elif icon == "email" -%} {%- elif icon == "facebook" -%} {%- elif icon == "facebook-messenger" -%} {%- elif icon == "fitbit" -%} {%- elif icon == "git" -%} {%- elif icon == "gitea" -%} {%- elif icon == "gitbook" -%} {%- elif icon == "github" -%} {%- elif icon == "gitlab" -%} {%- elif icon == "gitter" -%} {%- elif icon == "goodreads" -%} {%- elif icon == "googleplay" -%} {%- elif icon == "googlescholar" -%} {%- elif icon == "gpg" -%} {%- elif icon == "hackerone" -%} {%- elif icon == "hackerrank" -%} {%- elif icon == "hackthebox" -%} {%- elif icon == "imdb" -%} {%- elif icon == "instagram" -%} {%- elif icon == "itchio" -%} {%- elif icon == "jenkins" -%} {%- elif icon == "kaggle" -%} {%- elif icon == "keybase" -%} {%- elif icon == "kofi" -%} {%- elif icon == "lastfm" -%} {%- elif icon == "leetcode" -%} {%- elif icon == "letterboxd" -%} {%- elif icon == "librepay" -%} {%- elif icon == "lichess" -%} {%- elif icon == "linkedin" -%} {%- elif icon == "mastodon" -%} {%- elif icon == "matrix" -%} {%- elif icon == "medium" -%} {%- elif icon == "meetup" -%} {%- elif icon == "mixcloud" -%} {%- elif icon == "npm" -%} {%- elif icon == "opencollective" -%} {%- elif icon == "orcid" -%} {%- elif icon == "patreon" -%} {%- elif icon == "paypal" -%} {%- elif icon == "peertube" -%} {%- elif icon == "pinterest" -%} {%- elif icon == "pixelfed" -%} {%- elif icon == "pleroma" -%} {%- elif icon == "podcasts-apple" -%} {%- elif icon == "podcasts-google" -%} {%- elif icon == "polywork" -%} {%- elif icon == "reddit" -%} {%- elif icon == "researchgate" -%} {%- elif icon == "revolut" -%} {%- elif icon == "signal" -%} {%- elif icon == "slack" -%} {%- elif icon == "soundcloud" -%} {%- elif icon == "sourcehut" -%} {%- elif icon == "spotify" -%} {%- elif icon == "stackoverflow" -%} {%- elif icon == "steam" -%} {%- elif icon == "strava" -%} {%- elif icon == "telegram" -%} {%- elif icon == "threema" -%} {%- elif icon == "tryhackme" -%} {%- elif icon == "tumblr" -%} {%- elif icon == "twitch" -%} {%- elif icon == "twitter" -%} {%- elif icon == "unsplash" -%} {%- elif icon == "whatsapp" -%} {%- elif icon == "xampp" -%} {%- elif icon == "xda" -%} {%- elif icon == "xing" -%} {%- elif icon == "xmpp" -%} {%- elif icon == "ycombinator" -%} {%- elif icon == "youtube" -%} {%- endif -%} {%- endmacro draw_svg -%}