aboutsummaryrefslogtreecommitdiff
path: root/_plugins/meta.rb
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-03-17 21:17:35 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-03-17 21:17:35 +0100
commitddb547694fbc649933328effd1ae08dab5eb1eea (patch)
tree26daaf1a1407f84d4cf86d225070bd2d4a0c3f97 /_plugins/meta.rb
parentcdceb8d1c00fc6aab6566e7dfb8b5ee536cc989b (diff)
fix rendering for new post
Diffstat (limited to '_plugins/meta.rb')
-rw-r--r--_plugins/meta.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/_plugins/meta.rb b/_plugins/meta.rb
index 0e25871..2bf6662 100644
--- a/_plugins/meta.rb
+++ b/_plugins/meta.rb
@@ -35,6 +35,7 @@ class Meta < Jekyll::Generator
def transform_data(site, slug)
data = site.data['post'][slug]
+ if data['git_log'] == nil then data['git_log'] = [ { } ] end
data['git_log'] = data['git_log'].sort { |c| c['date'].to_i }
git_log = data['git_log'].filter do |commit|