robb / jekyll-embedly-client Goto Github PK
View Code? Open in Web Editor NEWNo longer maintained
No longer maintained
I'm trying to use this to embed some vimeo videos in my site with custom player parameters from vimeo. I've added them to to config.yml and added a puts to the file to make sure the URL that's being output is corect according to a forum post I've seen. From what I've seen this should be working, but I'm just getting a regular vimeo video and not a configured one.
Relevant config.yml
embedly:
api_key: ######################
vimeo:
vimeo_color: ff9933
vimeo_title: 0
vimeo_byline: 0
vimeo_portrait: 0
embed.ly url
http://api.embed.ly/1/oembed?key=################&url=https%3A%2F%2Fvimeo.com%2F142537975&vimeo_color=ff9933&vimeo_title=0&vimeo_byline=0&vimeo_portrait=0
I'm kind of lost as to why this isn't working, but I'm new to Ruby and embed.ly so I'm probably missing something. I also tried adding the vimeo parameters to the @@EMBEDLY_PARAMETERS
array, but no dice. Any help would be appreciated.
It is impossible to specify an alt attribute for Flickr embeds. This means that any page with such an embed will not validate.
I'm getting an error in my site when using this plugin:
Liquid error: undefined method `[]' for nil:NilClass
Here is my config.yml file parts for the plugin:
embedly:
api_key: my_key_removed_for_security_reasons
vimeo:
width: 500px
Cool plugin! I tried following your sample with this:
{% embedly http://soundcloud.com/mightyoaksmusic/rainier, color: 00FFFF %}
But the "resolve" method DID NOT return the HTML key, so I end up with an empty div like this:
<div class="embed link soundcloud"></div>
So, I tried a vimeo embed like this:
{% embedly http://vimeo.com/18150336 %}
And that worked fine by producing this:
<div class="embed video vimeo"><iframe src="http://player.vimeo.com/video/18150336" width="1280" height="720" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></div>
So....maybe something changed with soundcloud?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.