Created
February 3, 2014 18:21
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For this to work, perform the following:
jekyll build --safe
chmod +x _site/JekyllLinterUpdate.sh
./_site/JekyllLinterUpdate.sh
Good luck!