Skip to content

Commit

Permalink
fixed page title + changed separator
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed Jan 30, 2024
1 parent 394e64a commit d6b4b57
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/generateweb.art
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ loop packages [k,v][
]
]

processPackagePage: function [repoName][
postprocessHTML render.template read "website/package.html" repoName
processPackagePage: function [entry][
packageTitle: entry\info\name| ++ " | "
postprocessHTML render.template read "website/package.html" entry\info\fullName
]

;--------------------------------
Expand All @@ -153,7 +154,7 @@ loop entries 'entry [

currentVersion: first entry\version
currentVersionIsLatest: true
write ~{|tgtName|/index.html} processPackagePage entry\info\fullName
write ~{|tgtName|/index.html} processPackagePage entry

createSpecFile entry currentVersion tgtName

Expand All @@ -164,7 +165,7 @@ loop entries 'entry [

currentVersion: vv
currentVersionIsLatest: false
write ~{|versionTgt|/index.html} processPackagePage entry\info\fullName
write ~{|versionTgt|/index.html} processPackagePage entry

createSpecFile entry vv versionTgt
]
Expand All @@ -175,6 +176,7 @@ if odd? size entries ->

; render homepage
isHome: true
packageTitle: ""
write "public/index.html"
render.template read "website/index.html"

Expand Down

0 comments on commit d6b4b57

Please sign in to comment.