Skip to content

Instantly share code, notes, and snippets.

@wadewegner
Created February 3, 2014 18:21
Show Gist options
  • Save wadewegner/8789331 to your computer and use it in GitHub Desktop.
Save wadewegner/8789331 to your computer and use it in GitHub Desktop.
I needed a way to refresh the Facebook meta data for all my Jekyll blog posts. This solution provided the easiest (and fastest) solution.
---
layout: nil
---
#!/bin/bash
{% for post in site.posts %}$(/usr/bin/open -a "/Applications/Google Chrome.app" 'https://developers.facebook.com/tools/debug/og/object?q=http://www.wadewegner.com{{ post.url }}')
{% endfor %}
@wadewegner
Copy link
Author

For this to work, perform the following:

  1. Create this script in your Jekyll directory.
  2. Run: jekyll build --safe
  3. Run: chmod +x _site/JekyllLinterUpdate.sh
  4. Run: ./_site/JekyllLinterUpdate.sh

Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment