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

added YouTube social icon, changed twitter icon to X #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions layouts/partials/general/social-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@
<!-- Twitter -->
{{ with .Site.Params.social.links.twitter }}
<li>
<a href="https://twitter.com/{{ . }}" target="_blank" rel="noopener" aria-label="Visit Twitter profile" class="social-btn twitter">
{{ partial "svg/twitter.svg" }}
<a href="https://twitter.com/{{ . }}" target="_blank" rel="noopener" aria-label="Visit X profile" class="social-btn twitter">
{{ partial "svg/twitterx.svg" }}
</a>
</li>
{{ end }}

{{ with .Site.Params.social.links.youtube }}
<li>
<a href="https://youtube.com/channel/{{ . }}" target="_blank" rel="noopener" aria-label="Visit Youtube profile" class="social-btn youtube">
{{ partial "svg/youtube.svg" }}
</a>
</li>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/posts/social-share.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h2>Share</h2>
<!-- Twitter -->
{{ if .Site.Params.social.share.twitter }}
<a href="https://twitter.com/intent/tweet?url={{ .Permalink }}&amp;text={{ .Title }}" target="_blank" rel="noopener" aria-label="Share on Twitter" class="social-btn twitter">
<li>{{ partial "svg/twitter.svg" }}</li>
<li>{{ partial "svg/twitterx.svg" }}</li>
</a>
{{ end }}
<!-- Reddit -->
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/svg/twitterx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions layouts/partials/svg/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.