mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-15 12:15:52 +00:00
Fix gemini output path for files in subdirectories under public/
This commit is contained in:
parent
74f7a0b54a
commit
7904a5974b
1 changed files with 5 additions and 1 deletions
|
|
@ -39,7 +39,11 @@ module Pressa
|
|||
File.join(slug, "index.gmi")
|
||||
end
|
||||
|
||||
output_path = File.join(target_dir, output_filename)
|
||||
output_path = if relative_dir.empty?
|
||||
File.join(target_dir, output_filename)
|
||||
else
|
||||
File.join(target_dir, relative_dir, output_filename)
|
||||
end
|
||||
FileWriter.write(path: output_path, content: rows.join("\n"))
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue