From 80f073767568cc0518a5158b9c9a79aa5f674c70 Mon Sep 17 00:00:00 2001 From: mustikka10 Date: Sat, 10 Oct 2026 12:48:52 +0300 Subject: [PATCH] Add lint coverage for root index frontmatter Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- test/lint_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/lint_test.rb b/test/lint_test.rb index 69d84825b2f..62b01073553 100644 --- a/test/lint_test.rb +++ b/test/lint_test.rb @@ -1,6 +1,18 @@ require_relative "./helper" describe "lint test" do + describe "index.html frontmatter" do + before do + @data = SafeYAML.load_file("index.html") + end + + it "uses the expected frontmatter keys and values" do + assert_equal %w[lang layout], @data.keys.sort + assert_equal "index", @data["layout"] + assert_equal "en", @data["lang"] + end + end + pages.each do |page| next unless page["path"].match?(/\.md$/)