Skip to content

Commit

Permalink
feat: add theme option slack_url
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jul 5, 2024
1 parent 857c6fe commit 09d2380
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/shibuya/theme/shibuya/components/foot-socials.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
{%- if theme_mastodon_url %}
<a href="{{ theme_mastodon_url }}" aria-label="Mastodon"><i class="i-simpleicons mastodon"></i></a>
{%- endif %}
{%- if theme_slack_url %}
<a href="{{ theme_slack_url }}" aria-label="Slack"><i class="i-simpleicons slack"></i></a>
{%- endif %}
{%- if theme_discord_url %}
<a href="{{ theme_discord_url }}" aria-label="Discord"><i class="i-simpleicons discord"></i></a>
{%- endif %}
Expand Down
4 changes: 4 additions & 0 deletions src/shibuya/theme/shibuya/components/nav-socials.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@
<a href="{{ theme_discord_url }}" aria-label="Discord">
<i class="i-simpleicons discord"></i>
</a>
{%- elif theme_slack_url %}
<a href="{{ theme_slack_url }}" aria-label="Slack">
<i class="i-simpleicons slack"></i>
</a>
{%- endif %}
1 change: 1 addition & 0 deletions src/shibuya/theme/shibuya/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ github_url =
gitlab_url =
bitbucket_url =
discord_url =
slack_url =
mastodon_url =
youtube_url =
reddit_url =
Expand Down
7 changes: 4 additions & 3 deletions static/css/icons/simpleicons.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions static/simpleicons/slack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 09d2380

Please sign in to comment.