Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mastodon Links #48

Open
hx077 opened this issue Nov 17, 2022 · 1 comment
Open

Mastodon Links #48

hx077 opened this issue Nov 17, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@hx077
Copy link

hx077 commented Nov 17, 2022

Hello!

Maybe I don't know how to do it but I'm trying to add a mastodon handle to the page. Any way I can add an icon and the handle?

-H

@hx077 hx077 added the enhancement New feature or request label Nov 17, 2022
@PHRaposo
Copy link

PHRaposo commented Mar 27, 2024

Hi.

I've found a way to add Soundcloud and Youtube icons to the template.

I've followed a few steps:

  • Downloaded an svg icon. E.G., I've found a Mastodon icon here:
    LINK

  • Uploaded the SVG file to the repository in "assets/img/icons/" folder:

  • Modified _/includes/author-box.html. For YouTube the code was:

{% if site.youtube %}           
<li class="youtube"><a class="" href="https://youtube.com{{site.youtube}}" target="_blank"><i class="fa fa-youtube"></i></a></li>
{% endif %}
  • Modified _/pages/about.html.
 {% if site.youtube %}
<li class="youtube"><a class="youtube" href="https://youtube.com/{{site.youtube}}" target="_blank"><i class="fa fa-youtube"></i></a></li>
{% endif %}
  • Modified _/assets/css/main.css after the line "/* = = = Social Share Icon Colors = = = */"
    This is for changing the color of the icon and I've used the same as twitter (that I've disabled.)

.youtube:hover{color:#1DA1F2}

  • Included new lines in _config.yml after "# Contact links".
youtube: # YouTube Channel (without @)
soundcloud: # Soundcloud username

Maybe this can be used for Mastodon and can be helpful for others.

Best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants