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

Customization of the logo #2

Closed
catethos opened this issue Jun 6, 2020 · 9 comments
Closed

Customization of the logo #2

catethos opened this issue Jun 6, 2020 · 9 comments

Comments

@catethos
Copy link

catethos commented Jun 6, 2020

How can I replace the "gem" logo by my own image? I have tried parameters like logo, logoimage, but none is working. Is it hard-coded?

@hexdae
Copy link
Collaborator

hexdae commented Jun 7, 2020

Hi @catethos The current implementation of the logo parameter only supports icons from fa-icons 4.7, here is a list of possible values for the logo parameter.

just add this to your _index.md, where <icon> is any icon from that list

---
<other parameters>
logo: <icon>
---

@hexdae
Copy link
Collaborator

hexdae commented Aug 2, 2020

Referencing Issue #3, You can select from this list all the Font Awesome Regular icons.

I'll close this issue if that's ok with you @catethos

@HeyItsWaters
Copy link

It would be neat to support the ability to use a custom Image as well as these icons.

@notcarbide
Copy link
Contributor

I threw something together here to use an img as the icon instead of FontAwesome icons, if anyone wants to cherry-pick (or improve).

https://github.com/carbideband/hugo-theme-dimension/tree/img-icon2

@amita4ai
Copy link

amita4ai commented Jan 8, 2021

I have two issues-- 1. Not able to see plots and images in blog posts and 2. Not able to change logo.

Regarding Issue1, I placed images in static folder and tried InsertImage and kintr::include_graphic{"/image.png"} but nothing worked. Please tell me the exact way to show image in .Rmd posts.

Regarding Issue2, I wrote following command in "_index.md" file in content folder---


background: images/.jpg
description: An ML & AI Enthusiast
title: Dr. Amita Sharma
logo: <"fa fa-eye">

But logo doesn't appear. Help me out regarding these issues.

Thanks in advance.

Dr. Amita Sharma

@notcarbide
Copy link
Contributor

notcarbide commented Jan 8, 2021

@amita4ai
If you're on the latest branch #12 adds a method for easily adding images to posts.
I'll create a PR to update the README to include this info soon but you can view the PR itself that is linked to see how to use it.

As for the logo, you need to look up the appropriate icon set for the icon you want to use on https://fontawesome.com. For example, to use the solid icon set for the eye icon, you would use fas fa-eye instead of fa fa-eye (which does not include the eye icon, that's why it's not showing up).

EDIT: I forgot that the logo param in the base version of this theme is only half of the fontawesome string for an icon. Try defining the icon set after the icon like this
logo: "eye fas"

Hope it helps!

@bhedder
Copy link

bhedder commented Mar 12, 2021

@hexdae
Copy link
Collaborator

hexdae commented Mar 15, 2021

I ended up implementing this feature natively in #16, please let me know if that branch works for you here and I'll merge it. Font awesome icons were kinda limiting and hard to use, so I decided to go with images instead. You can still use all of the icons available before by finding them on wikimedia (example here}

@hexdae
Copy link
Collaborator

hexdae commented Mar 25, 2021

I am going to close this issue since it was addressed in #16

@hexdae hexdae closed this as completed Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants