Skip to content

Commit

Permalink
Merge pull request #239 from mismith0227/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
mismith0227 authored Jul 9, 2024
2 parents 4510537 + 5827c10 commit 3ced739
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ paginate = 10
# Social accounts. Link to these accounts are displayed in the header and
# footer
twitter = "Your Twitter username"
mastodon = "Your Mastodon username"
facebook = "Your Facebook username"
instagram = "Your Instagram username"
github = "Your GitHub username"
Expand Down
12 changes: 11 additions & 1 deletion layouts/partials/link.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if or ( $.Param "medium" ) ( $.Param "twitter" ) ( $.Param "facebook" ) ( $.Param "instagram" ) ( $.Param "github" ) ( $.Param "gitlab" ) ( $.Param "npm" ) ( $.Param "codepen" ) ( $.Param "dribbble" ) ( $.Param "fivehundredpx" ) ( $.Param "flickr" ) ( $.Param "pinterest" ) ( $.Param "tumblr" ) ( $.Param "vimeo" ) ( $.Param "youtube" ) ( $.Param "linkedin" ) ( $.Param "strava" ) ($.Param "threads") }}
{{ if or ( $.Param "medium" ) ( $.Param "twitter" ) ( $.Param "mastodon" ) ( $.Param "facebook" ) ( $.Param "instagram" ) ( $.Param "github" ) ( $.Param "gitlab" ) ( $.Param "npm" ) ( $.Param "codepen" ) ( $.Param "dribbble" ) ( $.Param "fivehundredpx" ) ( $.Param "flickr" ) ( $.Param "pinterest" ) ( $.Param "tumblr" ) ( $.Param "vimeo" ) ( $.Param "youtube" ) ( $.Param "linkedin" ) ( $.Param "strava" ) ($.Param "threads") }}
<ul class="c-links">
{{ with ($.Param "medium") }}
<li class="c-links__item">
Expand All @@ -20,6 +20,16 @@
</a>
</li>
{{ end }}
{{ with ($.Param "mastodon") }}
<li class="c-links__item">
<a href="https://mastodon.social/{{ . }}" target="_blank">
<svg viewBox="0 0 64 64" class="c-links__icon">
<title>{{ i18n "social-mastodon" }}</title>
<use xlink:href="#icon-mastodon"></use>
</svg>
</a>
</li>
{{ end }}
{{ with ($.Param "facebook") }}
<li class="c-links__item">
<a href="https://facebook.com/{{ . }}" target="_blank">
Expand Down
Loading

0 comments on commit 3ced739

Please sign in to comment.