privefl / rmarkdown-website-template

Template for creating your website with R markdown.
50 stars 338 forks source link

Academicons #10

Closed helderc closed 1 year ago

helderc commented 1 year ago

Thanks for the template, it works very well!

Is it possible to use Academicons [1]? I tried a couple of things but nothing works. Thanks again.

[1] https://jpswalsh.github.io/academicons/

privefl commented 1 year ago

Not sure but you might be able to get your own images as icons, following https://bookdown.org/yihui/rmarkdown-cookbook/favicon.html.

privefl commented 1 year ago

What I've tested so far didn't work. If you find a solution, I would be interested to know.

helderc commented 1 year ago

Sure, I did it following the link you posted!

The only difference is that inside the header.html I put:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons/css/academicons.min.css">

To help others, here is how my _site.yml looks like:

name: "Statistik"                                # CHANGE HERE 
output_dir: "."
navbar:
  title: "Statistik"                             # CHANGE HERE 
  type: inverse
  left:
    - text: "Home"
      icon: fa-home
      href: index.html
    - text: "About"
      icon: fa-user 
      href: about.html
  right:
    - icon: "fa-envelope fa-2x"
      href: mailto:heldercro@gmail.com
    - icon: "ai-google-scholar ai-2x"
      href: https://scholar.google.com/citations?user=2M2ZAswAAAAJ
    - icon: "fa-github fa-2x"
      href: https://github.com/heldercro
    - icon: "ai-researchgate ai-2x"
      href: https://www.researchgate.net/profile/Helder-Oliveira-4
    - icon: "ai-orcid ai-2x"
      href: https://orcid.org/0000-0003-4558-2844
    - icon: "fa-linkedin fa-2x"
      href: https://www.linkedin.com/in/heldercro/

output:
  html_document:
    theme: flatly
    highlight: textmate
    includes:
      in_header: header.html

For this page: https://statistik.netlify.app

Thanks again!

privefl commented 1 year ago

Added my Gscholar as well :-)