From 960cd8d70bef2dc03c65d186a3aa79e2cc92d73d Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Tue, 13 Feb 2024 15:34:10 +0100 Subject: [PATCH] expose license always --- _plugins/jekyll-topic-filter.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/_plugins/jekyll-topic-filter.rb b/_plugins/jekyll-topic-filter.rb index febfe7a1bb7d0a..1310f9d97faeb8 100644 --- a/_plugins/jekyll-topic-filter.rb +++ b/_plugins/jekyll-topic-filter.rb @@ -577,6 +577,7 @@ def self.resolve_material(site, material) page_obj['translations']['tutorial'] = tutorial_translations page_obj['translations']['slides'] = slide_translations page_obj['translations']['video'] = slide_has_video # Just demand it? + page_obj['license'] = 'CC-BY-4.0' if page_obj['license'].nil? # I feel less certain about this override, but it works well enough in # practice, and I did not find any examples of `type: ` in topics/*/tutorials/*/tutorial.md but that doesn't