rubocop fixes

This commit is contained in:
Garry Ing
2021-03-31 22:50:13 -04:00
parent e18e017242
commit 14d363f87b
4 changed files with 37 additions and 27 deletions

View File

@ -8,7 +8,7 @@ JEKYLL
# Inject empty front matter in notes that don't have any
Jekyll::Hooks.register :site, :after_init do |site|
Dir.glob(site.collections['notes'].relative_directory + '/**/*.md').each do |filename|
Dir.glob("#{site.collections['notes'].relative_directory}/**/*.md").each do |filename|
raw_note_content = File.read(filename)
unless raw_note_content.start_with?('---')
raw_note_content.prepend(EMPTY_FRONT_MATTER)