schochastics / academicons

quarto extension to use academicons in HTML documents
67 stars 4 forks source link

how can these be used in a quarto about page? #2

Closed JohnFranchak closed 2 years ago

JohnFranchak commented 2 years ago

https://quarto.org/docs/websites/website-about.html

The example they give is via the YAML header. How could the google scholar one be put in as the icon? The short codes don't work in this placement.

---
title: "Finley Malloc"
about:
  template: jolla
  image: profile.jpg
  links:
    - icon: twitter
      text: twitter
      href: https://twitter.com
    - icon: github
      text: Github
      href: https://github.com
---
schochastics commented 2 years ago

AFAIK, only bootstrap icons are supported right now. I had a brief look in the source code and it seems I can't hack around that at the moment. I think the only way for now would be a custom template. I may look into that if I have time

JohnFranchak commented 2 years ago

Thanks for taking a look. That's what I thought, but I'm glad to know I wasn't missing some way of doing it. I could recode things to make my own template instead of using their YAML about pages to take advantage of the academic-inspired icons (which are great!).

mcanouil commented 2 years ago

Because this issue was mentioned in https://github.com/quarto-dev/quarto-cli/discussions/2776, see the answer on how to use any icons from shortcode: https://github.com/quarto-dev/quarto-cli/discussions/2402