Skip to content

Commit

Permalink
fix page indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 authored Nov 18, 2024
1 parent 17ae5ad commit 0ce3dc9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions squarkdown/squarkup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,17 @@

site_data.add_page(file_data)

if file_data.isIndex
if file_data.flags.include?("index")
index_files.append(file_data.index)

file_data.index.each do |index|
site_data.create_index(index:, page: file_data.path)
site_data.create_index(index:, page: file_data.dest)
end

next
end

## index + tag
file_data.index.each do |index|
site_data.update_index(index:, page: file_data.path)
end
Expand All @@ -132,7 +133,7 @@
end


## export index pages
## TODO export index pages
if index_files.length > 0
log "exporting index pages..."
end
Expand Down

0 comments on commit 0ce3dc9

Please # to comment.