-
Notifications
You must be signed in to change notification settings - Fork 192
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
Incorporating icons, like Academicons #9
Comments
Hi @damonlynch, I see you are making good progress on your website 👍🏻. Let me reply in two parts: 1. Using external icon sets (e.g. Academicons) You simply need to include the respective stylesheet; in your case, that would be
in the To achieve this, you may create a <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css"> With the stylesheet available you can then use the icons as it is described on their website, i.e., using <i class="ai ai-google-scholar-square"></i> in your If you want to use icons in [markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true to your 2. What's built-in? You are correct, this is a little bit of a hidden feature at the moment 😸, but as you already saw, there is an icon on the header of the start page. This theme currently includes You can use all those icons in 2.5 😅 Future Work To make using icons in {{< i class="fa fa-envelope">}} Mail me! in your usual You can add this functionality locally by creating a {{ with .Get "class" }}<i class="{{ . }}"></i>{{ end }} I hope that helps 😄 . Let me know if this works for you. Kind regards, |
Hi @damonlynch, I saw that you added icons to the »contact«-section of https://damonlynch.net/, so I suppose we can close this issue. By the way, I really like what you did with the theme. https://damonlynch.net/ looks very nice 👍🏻 . |
Thanks Jan for the detailed instructions, and for your kind words! Do you want the theme's README.md updated to include some of this information? Of course you probably don't want to overwhelm that page with extraneous information, but I suppose a hint that it's possible to add these features easily might provide enough encouragement for others to also use your theme. If you do like this idea, I can try to figure out how to do it in git and make a pull request. I'm very new to git but I need to figure git basics out at some point. |
Hi @damonlynch, I took the time
What do you think? Is that good enough? PS:
If it's just about editing some |
A suggestion: to make the theme more welcoming to academics looking for a more stylish personal website than other Hugo theme options, consider making it easy to include Academicons.
I assume it doesn't take many steps to do, if you already know how. The thing is, of course, learning how!
On a related issue, perhaps it is worth mentioning something about font awesome icons too? For example, are are the free ones built-in and ready to incorporate with the right code, like you do in
themes/hugo-scroll/index.html
? Or does the user need to take additional steps to be able to make use of other icons?The text was updated successfully, but these errors were encountered: