<||= importPartial "components/sidebar.html" ||>
<||= importPartial "components/breadcrumbs.html" ||>
<|| if not? all? @[2 = size pagePath "documentation" = first pagePath "_index" = last pagePath] [ ||>
<||= switch contains? pagePath "library" ["Library"] [join.with:" " map split.words last pagePath 'x -> capitalize x] ||>
<|| ] ||> <||= examples1: new [] examples2: new [] halfM: 3 + (size Data\rosetta) / 2 if odd? halfM [halfM: halfM+1] otherHalfM: (size Data\rosetta) - halfM previousFirst: ' ' read.markdown replace replace replace W\content "%EXAMPLES_COUNT%" to :string size Data\rosetta "%EXAMPLES_2%" "- " ++ join.with:"\n" map last.n:otherHalfM Data\rosetta [ti][
switch and? previousFirst <> first ti
'l' <> first ti [
previousFirst: first ti
~{
|upper to :string previousFirst|
- |capitalize ti| } ] [ ~{
- |capitalize ti| } ] ] "%EXAMPLES_1%" join.with:"\n" map first.n:halfM Data\rosetta [ti][ switch and? previousFirst <> first ti not? numeric? to :string first ti [ previousFirst: first ti ~{
|upper to :string previousFirst|
- |capitalize ti| } ] [ ~{
- |capitalize ti| } ] ] ||>