Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Font-Awesome or relative path for custom icons #729

joadwe started this conversation in Ideas
Discussion options

I wondered if it was possible to add support for the use of font-awesome or relative paths for to .svg icons on the home page?

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

Sure, it is possible. You could add the font-awesome includes into your project and use their CSS classes in the configuration.
But we are using fork-awesome icons. Don't they have the icons you want?

You must be logged in to vote
3 replies
Comment options

Thanks for the quick reply! Fork-awesome is great, their selection just seems to be a little smaller. I'm a research scientist and some of the more fun/relevant scientific icons arent available https://fontawesome.com/search?q=vials&o=r. I am new to HUGO themes; i did try adding font awesome into the project but it appears to have the same naming structure as fork-awesome and the HUGO server would fail to load any icons if both were present. I will do some further reading to see where I'm going wrong.

Comment options

If I remember correctly, you will need to remove this line to disable fork-awesome. And, you will need to add the font awesome into the header section, here.

You could either fork the theme and change these files or simple override them by placing a file with the same name inside the same folder structure. Ex: to override extension.html you need to create the file in your-project-path/layouts/partials/head/extensions.html.

Comment options

Perfect, thanks for taking the time to share this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /