Hugo-coder: Other Social Params

Created on 3 Feb 2020  路  10Comments  路  Source: luizdepra/hugo-coder

I would like to add Google Scholar, Email, and another website with my own icon to the Social Params. How do I do that?

Most helpful comment

I managed to make it work! It was only about the icon name.
Thank you @clement-pannetier 馃憤.

All 10 comments

You could crate a custom CSS class for each icon and put it in the icon attribute of the desired social item.

You should add one block (in config) like:

[[params.social]]
    name = "Telegram"
    icon = "fab fa-telegram fa-2x"
    weight = 1
    url = "https://telegram.me/fenix45/"

Then replace icon with one of FontAwesome Icons.
_Weight_ should be an incremental number for each icon.

I just found out that the social icons are not sorted correctly. I'm fixing it right now.

Can we access the Academic icons the same way we can access the original font awesome files? https://jpswalsh.github.io/academicons/

Yes, by downloading the academicons.min.css, placing it in your project static folder and adding it into the custom_css configuration. Then, you just need to put the desired icon CSS class in the icon field of any social item.

You could also change this theme files adding:

<link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css">

after this line: https://github.com/luizdepra/hugo-coder/blob/master/layouts/_default/baseof.html#L25

Yes, by downloading the academicons.min.css, placing it in your project static folder and adding it into the custom_css configuration. Then, you just need to put the desired icon CSS class in the icon field of any social item.

You could also change this theme files adding:

<link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css">

after this line: https://github.com/luizdepra/hugo-coder/blob/master/layouts/_default/baseof.html#L25

Thank you! I'm new to creating websites!

Yes, by downloading the academicons.min.css, placing it in your project static folder and adding it into the custom_css configuration. Then, you just need to put the desired icon CSS class in the icon field of any social item.

You could also change this theme files adding:

<link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css">

after this line: https://github.com/luizdepra/hugo-coder/blob/master/layouts/_default/baseof.html#L25

Hi Luiz,

I went until copying the academicons.min.css in the static folder. Got lost in the following steps. Is it possible to get some help for them?

Thanks!

Hi @anyosa,

You have to options:

  1. You copy the academicons.min.css in static/css and academicons.ttf in static/fonts
    You add this line to config.toml: custom_css = ["css/academicons.min.css"]
    You add a new social entry:
[[params.social]]
    name = "Academia"
    icon = "ia ia-academia"
    weight = 1
    url = "https://jpswalsh.github.io/academicons/" 
  1. Or simply follow this:
    > You could also change this theme files adding:
    <link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css">
    after this line: https://github.com/luizdepra/hugo-coder/blob/master/layouts/_default/baseof.html#L31

And add the new social entry like above.

Hi @clement-pannetier, thanks! but tried both options and no success so far. The icon just doesn't appear.
(Do you know the name of the google scholar icon? Or where can I find the different icon names of academicons?)

I managed to make it work! It was only about the icon name.
Thank you @clement-pannetier 馃憤.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mike-E-angelo picture Mike-E-angelo  路  3Comments

rchaganti picture rchaganti  路  4Comments

mauricioabreu picture mauricioabreu  路  5Comments

luizdepra picture luizdepra  路  6Comments

clement-pannetier picture clement-pannetier  路  3Comments