Skip to content

Commit

Permalink
Add Mastodon account
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFoDy committed Jan 27, 2024
1 parent 3754dad commit 3c7f235
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data/site.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module.exports = {
title: 'Dev Tips by Nikita Dubko',
author: 'Nikita Dubko',
description: 'Hello, my name is Nikita and I am a front-end developer. Here are life hacks and tips related to my daily work.',
description:
'Hello, my name is Nikita and I am a front-end developer. Here are life hacks and tips related to my daily work.',
twitter: 'dev_tip',
mastodon: 'dev_tip',
paths: {
domain: 'mefody.dev',
site: 'https://mefody.dev',
Expand Down
1 change: 1 addition & 0 deletions src/images/mastodon-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/includes/footer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<dd><a href="https://twitter.com/webstandards_ru" rel="noopener">@webstandards_ru</a> and <a href="https://twitter.com/webstandards_en" rel="noopener">@webstandards_en</a> editor</dd>
</dl>
<ul class="footer__social-list social-list">
<li class="social-list__item">
<a href="https://mastodon.social/@{{ site.mastodon }}" rel="noopener me" class="social-list__link social-list__link--mastodon">Mastodon</a>
</li>
<li class="social-list__item">
<a href="https://twitter.com/{{ site.twitter }}" rel="noopener me" class="social-list__link social-list__link--twitter">Twitter</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions src/styles/blocks/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

.footer__about {
margin: 0;
margin-right: var(--line-space);
padding: 0;
}

Expand Down
4 changes: 4 additions & 0 deletions src/styles/blocks/social-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
--social-icon: url('/images/twitter-logo.svg');
}

.social-list__link--mastodon::before {
--social-icon: url('/images/mastodon-logo.svg');
}

.social-list__link--github::before {
--social-icon: url('/images/github-logo.svg');
}
Expand Down

0 comments on commit 3c7f235

Please sign in to comment.