Skip to content

Commit

Permalink
add fediverse social
Browse files Browse the repository at this point in the history
  • Loading branch information
thunder-coding committed Sep 28, 2023
1 parent dfec72f commit 378c919
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ baseurl: "" # the subpath of your site, e.g. /blog
url: "https://termux.dev" # the base hostname & protocol for your site, e.g. http://example.com
site_source: "https://github.com/termux/termux.github.io"
twitter_username: termuxdevs
mastodon:
fosstodon:
username: termux
instance: fosstodon.org
github_username: termux

github: [metadata]
Expand Down
2 changes: 1 addition & 1 deletion _includes/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{%- if site.instagram_username -%}<li><a href="https://instagram.com/{{- site.instagram_username| cgi_escape | escape -}}"><svg class="svg-icon"><use xlink:href="{{- '/assets/minima-social-icons.svg#instagram' | relative_url -}}"></use></svg> <span class="username">{{- site.instagram_username| escape -}}</span></a></li>{%- endif -%}
{%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{- site.linkedin_username| cgi_escape | escape -}}"><svg class="svg-icon"><use xlink:href="{{- '/assets/minima-social-icons.svg#linkedin' | relative_url -}}"></use></svg> <span class="username">{{- site.linkedin_username| escape -}}</span></a></li>{%- endif -%}
{%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{- site.pinterest_username| cgi_escape | escape -}}"><svg class="svg-icon"><use xlink:href="{{- '/assets/minima-social-icons.svg#pinterest' | relative_url -}}"></use></svg> <span class="username">{{- site.pinterest_username| escape -}}</span></a></li>{%- endif -%}
{%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a href="https://{{- mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{- '/assets/minima-social-icons.svg#mastodon' | relative_url -}}"></use></svg> <span class="username">{{- mst.username|escape -}}</span></a></li>{%- endif -%}{%- endfor -%}
{%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{- mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{- '/assets/minima-social-icons.svg#mastodon' | relative_url -}}"></use></svg> <span class="username">{{- mst.username|escape -}}</span></a></li>{%- endif -%}{%- endfor -%}
{%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{- site.twitter_username| cgi_escape | escape -}}"><svg class="svg-icon"><use xlink:href="{{- '/assets/minima-social-icons.svg#twitter' | relative_url -}}"></use></svg> <span class="username">{{- site.twitter_username| escape -}}</span></a></li>{%- endif -%}
{%- if site.youtube_username -%}<li><a href="https://youtube.com/{{- site.youtube_username| cgi_escape | escape -}}"><svg class="svg-icon"><use xlink:href="{{- '/assets/minima-social-icons.svg#youtube' | relative_url -}}"></use></svg> <span class="username">{{- site.youtube_username| escape -}}</span></a></li>{%- endif -%}
{%- if site.googleplus_username -%}<li><a href="https://plus.google.com/{{- site.googleplus_username| escape -}}"><svg class="svg-icon"><use xlink:href="{{- '/assets/minima-social-icons.svg#googleplus' | relative_url -}}"></use></svg> <span class="username">{{- site.googleplus_username| escape -}}</span></a></li>{%- endif -%}
Expand Down

0 comments on commit 378c919

Please sign in to comment.