Plain Grav + Admin 1.4 rc2 - enabling FontAwesome

Hi,

I am trying to set up a simple site. I downloaded 1.4 rc2 of Grav + Admin, created a modular page and am currently trying to setup a feature page.

The first thing that made me wonder: is there an alternative to specifying the features in the expert view frontmatter? Would it be possible to rebuild the same structure in the markdown text?

The next thing that got me stuck: I am trying to use FontAwesome icons in the features, but although I copied and pasted the frontmatter of another theme, no icon is shown.

I read in the documentation about the Asset Manager and it seems that I am missing js-inline: - 'https://use.fontawesome.com/<embedcode>.js' in my system.yaml.

Here more questions arose: Can I safely edit system.yaml? Is there a place in the admin panel, where I could edit this part of system.yaml? Is this single change sufficient to get the FontAwesome icons working? Is there a better way to achieve my goal?

Lots of newbie questions - please bare with me. :wink:

Cheers
Vince

Hello there,

maybe i cannot answer all of your questions, but let me try it with this one:

You can use HTML in your markdown. So if you wish to remake the “Features”-view in plain markdown you’re able to. Just copy the necessary html of an existing page and edit it as you like. I really don’t know why you wish to do it like that, but you re able to. :wink:

You can safely edit the “system.yaml”. But you should always do it in the the “user/config”-folder. You can just copy your system.yaml to this directory and change it. You can read all about it here.

Regards
Michael

I personally prefer editing markdown in the main content field than editing the frontmatter - that’s why I wondered, whether there is a way to have a feature section while avoiding frontmatter editing.

I will try getting FontAwesome to work by editing user/config/system.yaml - thank you for pointing out the right place to do that!

So I thought I should edit in the admin backend this section:

I added the strings that I found in the Asset Manager documentation for FontAwesome

at the end of the configuration
image

And it does not work. What did I misunderstand?

FYI @Vince42 , in the next release of the RC Admin Panel 1.7 FontAwesome will be a supported option: https://github.com/getgrav/grav-plugin-admin/blob/feature/1.7/CHANGELOG.md

can’t wait to upgrade :slight_smile:
I will stop my effort to get FontAwesome running in this release then. :wink:

1 Like