Skip to content

📷 Jekyll "generator" plug-in for embedding a Flickr collection (a set of specific photosets).

License

Notifications You must be signed in to change notification settings

cedricblondeau/jekyll-flickr-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Jekyll Flickr Collection Plugin

Jekyll "generator" plug-in for embedding a Flickr collection (a set of specific photosets).

Example: http://tenmonthsaroundtheworld.cedricblondeau.com/

Usage

Specify the Flickr collection ID and the Flickr user ID in your template. The generator will inject an array of photosets as a template variable.

Example

---
layout: default
flickr:
    collection_id: 72157651744154355
    user_id: 58782471@N05
---
{% if page.flickr.collection %}
	{% for set in page.flickr.collection %}
	<a href="{{ set.url }}" target="_blank" title="{{ set.title }}">
		<img src="{{ set.primary_photo_url }}" alt="{{ set.title }}" title="{{ set.title }}" />
	</a>
	{% endfor %}
{% endif %}

Configuration

_config.yml:

flickr:
  api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  shared_secret: xxxxxxxxxxxxxxxx

Requirements

Apply for a Flickr API key

https://www.flickr.com/services/apps/create/apply/

FlickRaw

Flickraw is a library to access flickr api in a simple way.

gem install flickraw

TODO

  • Cache support

Thanks!

About

📷 Jekyll "generator" plug-in for embedding a Flickr collection (a set of specific photosets).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages