Skip to content

Commit

Permalink
generalize names to other layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpbray committed Aug 2, 2023
1 parent dda4616 commit a9f811b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _extensions/cr-sidebar/cr-sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ function make_sidebar_layout(div)
end
}

sidebar_col = pandoc.Div(non_sticky_blocks,
narrative_col = pandoc.Div(non_sticky_blocks,
pandoc.Attr("", {"column", "sidebar_col"}, {width = "30%"}))
body_col_stack = pandoc.Div(sticky_blocks,
sticky_col_stack = pandoc.Div(sticky_blocks,
pandoc.Attr("", {"body_col_stack"}))
body_col = pandoc.Div(body_col_stack,
sticky_col = pandoc.Div(sticky_col_stack,
pandoc.Attr("", {"column", "body_col"}, {width = "55%"}))
layout = pandoc.Div({sidebar_col, body_col},
layout = pandoc.Div({narrative_col, sticky_col},
pandoc.Attr("", {"columns", "column-page", table.unpack(div.classes)},
{}))

Expand Down

0 comments on commit a9f811b

Please # to comment.