diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-24 21:53:46 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-24 21:53:46 +0100 |
commit | 639fece16245dac8c24277cc1ce2f1321f683920 (patch) | |
tree | e51960ee0aec339051fda39e72b4ef7693aaf6f0 /_plugins/meta.rb | |
parent | 126fa877f904a894e43c423fe19427e9221e36d1 (diff) |
clean up ruby code
Diffstat (limited to '_plugins/meta.rb')
-rw-r--r-- | _plugins/meta.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_plugins/meta.rb b/_plugins/meta.rb index f0d420f..85f3a75 100644 --- a/_plugins/meta.rb +++ b/_plugins/meta.rb @@ -8,6 +8,11 @@ module Meta # directly add generated page metadata to `page.meta` in liquid page.data['meta'] = site.data['post'][page.slug] + # set page.authors to author metadata from git+yaml + page.data['authors'] = site.data['authors'].filter { |author| + author['git'].intersect?(page.data['meta']['authors']) + } + # set page.date to generated date_initial page.data['date'] = page.data['meta']['date_initial'] end |