danielbayerlein / middleman-casper

👻 Casper theme (Ghost) for Middleman-Blog
134 stars 18 forks source link

Add reddit share to casper fonts #11

Open wikimatze opened 8 years ago

wikimatze commented 8 years ago

Hi Daniel,

is it possible to add an icon for it? A helper-method should then have the following format:

  def reddit_url
    "https://www.reddit.com/submit?url=#{current_article_url}" \
      "&title=#{current_article.title}"
  end

Cheers, Matthias

danielbayerlein commented 8 years ago

Hey Matthias (@wikimatze),

thank you for improving middleman-casper. At the moment middleman-casper is a 1:1 clone of https://github.com/TryGhost/Casper for @middleman. Can you create an issue at https://github.com/TryGhost/Casper?

Thanks 👍

wikimatze commented 8 years ago

Didn't know that, will forward the feature request.

wikimatze commented 8 years ago

Found the solution on https://github.com/wdherndon/Casper. WIlliam has a fork with:

.icon-reddit:before {
    content: "\f60a";
}
.icon-linkedin:before {
    content: "\f60b";
}
.icon-stumbleupon:before {
    content: "\f60c";
}

My suggestion: Add a FAQ and provide the extra-helper methods as I did over there for the additional share buttons if someone want's to use them.

Discussion under https://github.com/TryGhost/Casper/issues/278#event-865392565. Think you will not add those font's in your repository.