Hello there,
My project is already existing in another format but I want to convert it to suit MM’s requirements. I mean, I must go from Twig to Ruby. There’s many things planned for this personal project, and dynamic content (blog and portfolio) always been a problem and Middleman is the solution. I already had a Sass file, but I have to convert from HTML to Erubis (or HAML, it’s really interesting). i really wish that Font Awesome is a big part of the project, the strawberry on the cake.
But there’s a catch: how do I implement Font Awesome?
I tried to use font-awesome-sass
, but the documentation lacks of details, I don’t know what to do with it. I know there are helpers as shown, but I always end with a syntax error. I installed Sprockets, I read latter’s and Padrino’s documentations, and I still had no clue. I also tried to reverse engineer some templates.
I went for an exploration on many forums and I got a hit onto this :
So I tried to use the font-awesome-middleman
ruby gem, but it seems to be outdated:
$ bundle install
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "middleman-core":
In snapshot (Gemfile.lock):
middleman-core (= 4.1.7)
In Gemfile:
font-awesome-middleman (~> 4.5) was resolved to 4.5.0, which depends on
middleman-core (~> 3.0)
middleman (>= 4.0.0) was resolved to 4.1.7, which depends on
middleman-core (= 4.1.7)
middleman-compass (>= 4.0.1) was resolved to 4.0.1, which depends on
middleman-core (>= 4.0.0)
middleman-livereload was resolved to 3.4.6, which depends on
middleman-core (>= 3.3)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
On the topic, there’s the MaxCDN solution, but it’s an easy solution, and it’s using third-party servers ; I already ditched it (MaxCDN) as I did for Google Fonts. I really want to use those frameworks on my own server, so any problem would only be accountable to me. It’s also about a thing meta-data, and I want to take care of my visitors (and me), as several of them could be from France.
I am trying to integrate the <i>
tag the same way as the link right there*:
<div class="footer-access">
<%= link_to 'DATALOVE', 'http://neutrinet.be/', :target => '_blank', :name => 'Coeur' %>
<i class="fa fa-heart fa-lg"></i>
</div>
*I know I might need to adapt my Sass. I simply wish to make the whole act like a button, which will happen on some pieces of my website.
So here’s my question:
As I might need to use font-awesome-sass
, how could I implement it? Is there any available way I must have been missing?
I am sorry, I am still a rookie in Webdev, but any light is welcome.
Additional question: Would font-awesome-rails
be actually a good alternative to font-awesome-rails
?