Skip to content

Commit 88fb68d

Browse files
committed
fix: remove duplicate tags page and update bake script paths
- Remove all-tags.md (permalink conflict with tags.md) - Update bake_analysis_enrichment.rb for _analyses/ directory
1 parent f31e90d commit 88fb68d

File tree

2 files changed

+5
-121
lines changed

2 files changed

+5
-121
lines changed

_scripts/bake_analysis_enrichment.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,25 @@ def era_context_line(era)
5252
analysis_file = p["analysis"]
5353
next unless analysis_file
5454

55-
slug = analysis_file.to_s.sub(/\.md\z/, "")
55+
# Extract basename for permalink (e.g., "_analyses/foo-analysis.md" -> "foo-analysis")
56+
basename = File.basename(analysis_file, ".md")
5657
products << {
5758
"name" => p["name"],
5859
"website" => p["url"],
5960
"description" => p["description"],
6061
"tags" => p["tags"] || [],
6162
"era" => era,
6263
"analysis_file" => analysis_file,
63-
"analysis_permalink" => "/#{slug}/",
64+
"analysis_permalink" => "/#{basename}/",
6465
}
6566
end
6667
end
6768

6869
product_by_analysis_file = {}
6970
products.each { |p| product_by_analysis_file[p["analysis_file"]] = p }
7071

71-
analysis_pages = Dir.glob("*.md").select do |path|
72+
# Analysis pages are now in _analyses/ directory
73+
analysis_pages = Dir.glob("_analyses/*.md").select do |path|
7274
fm, = parse_front_matter(path)
7375
fm && fm["layout"] == "analysis"
7476
end

all-tags.md

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)