Brad Weslake etc

View convertnotes.rb
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
 
# A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra
# style footnotes.
#
# Possibly useful for those who are migrating from Wordpress to Jekyll, were
# using WP-Footnotes, and wish to render their new Markdown pages with Kramdown
# (which supports PHP Markdown Extra style footnotes).
#
# For example, you might first run https://github.com/thomasf/exitwp and then run
View crosspopulate.rb
1 2 3 4 5 6
def crosspopulate(entry,parententry)
parententry.fields.keys.each do |k|
entry[k] = parententry[k] unless entry.has_field?(k)
end # each
return entry
end # def crosspopulate
Something went wrong with that request. Please try again.