-
Notifications
You must be signed in to change notification settings - Fork 41
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
Need to add custom social icon #11
Comments
What is 500px? A website?
|
It's a photo sharing website like Flickr. Just need a 500px social icon to link to my 500px profile. |
The social icons come from the Bootstrap Icons web font, so their size scales with the applicable text size. Currently, in the home layout, they're sized to display-6: <p class="display-6 text-center">{{ partial "paige/social.html" $page }}</p> I don't think there's a way to make a regular image file scale along with the rest of the icons. You would have to carefully pick a font size that would match the size of the 500px logo image you have, and then never change it. But the image wouldn't scale with the size of the text if, say, the user changes the page zoom. Your best bet might be to mix in another web font that does have a 500px logo. Do you know of one? |
Is this it? https://fontawesome.com/icons/500px?s=&f=brands |
Yup that is it! |
In v0.49.0, I changed paige:
social:
github:
class: "bi bi-github" Now you can use your own web font class names, including |
I appreciate you adding support for Font Awesome, but how would I include Font Awesome in the page? I have added this but it doesn't show an icon. social: |
You have to include Font Awesome yourself. See https://github.com/willfaught/paige#include. For example, in your site's <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"> For more info (I've never used FA personally), take a look at https://stackoverflow.com/questions/71201741/how-to-use-font-awesome-6-icons or https://fontawesome.com/docs/web/setup/get-started or https://cdn.fontawesome.com. |
Thank you, that worked like a charm! Appreciate the help! I also noticed you may want to update the readme to include the new syntax for bootstrap icons "fa-brands fa-". |
Thanks! It'll be corrected in the next push to master. :) |
This seems to be resolved, so closing. |
I am not seeing "500px" in the official bootstrap-icon library. How would I go about calling a custom image to show under social: or could you add support for this?
The text was updated successfully, but these errors were encountered: