Skip to content

@11ty/font-awesome doesn't seem to work with EJS #305

Open
@savetheclocktower

Description

@savetheclocktower

Thanks in advance for your bug report!

  • Have you reproduced this issue in incognito/private browsing?
  • Have you made sure you issue doesn't already exist?

Where is the URL that this occurs?

(pertaining to the 11ty-migration branch)

What's your issue?

Unless I'm misunderstanding something, I can't get @11ty/font-awesome to work because it requires features that aren't implemented in EJS.

The docs explain that you need to include this somewhere on any page where you use icons:

{% getBundle "fontawesome" %}

Of course, that's a Liquid template snippet. The getBundle shortcode doesn't seem to be available in EJS, nor does any other shortcode. I don't see an easy way of including them in an EJS template.

It feels like we're using Eleventy in hard mode just because we've chosen EJS. If there's a particular reason we're using EJS instead of Liquid or Nunjucks or something, that's fine, but otherwise I'd be in favor of moving to one of those templating languages instead so I don't have to reimplement so much stuff.

Which OS/Browser/Version does this happen on?

All.

Steps to Reproduce/Additional Details:

Visit any page that uses FA icons (like /community).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions