Compare commits

...

2 Commits

Author SHA1 Message Date
Daylin Morgan 9f5a274711
fix: update footer with updated repo link 2023-11-25 13:00:40 -06:00
Daylin Morgan f5b3671757
refactor: use more random tags 2023-11-25 13:00:10 -06:00
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ proc footerBar*(): VNode =
packagesGitUrlBase & ctx.nimpkgs.packagesHash & "/packages.json".kstring,
"nim-lang/packages:" & packagesAbbr
)
links.add ("http://github.com/daylinmorgan/nimpkgs".kstring, "source".kstring)
links.add ("http://github.com/nimpkgs/website".kstring, "source".kstring)
result = buildHtml(footer(class = "mt-auto md:mx-10 flex flex-col md:flex-row md:justify-between md:items-center mb-5")):
if ctx.loaded:
tdiv(class = "text-xs text-ctp-subtextzero px-1"):

View File

@ -31,7 +31,7 @@ proc selectRandomTags*(ctx: Context): seq[kstring] =
for tag, cnt in tagCounts:
if cnt > 3: tags.add tag
while result.len < 5:
while result.len < 10:
let tag = tags.sample()
if tag notin result:
result.add tag