Changeset 5 in code for trunk/cli/html.ml


Ignore:
Timestamp:
Jun 13, 2022, 4:34:20 PM (3 years ago)
Author:
fox
Message:

Change output date format & use <ul> for latest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/html.ml

    r3 r5  
    8484  in
    8585  List.fold_left
    86     (fun a m ->
    87       a ^ Logarion.(Date.(pretty_date (listing m.Text.date)) ^ " ")
    88       ^ {|<a href="|} ^ Logarion.Text.short_id m ^ {|.htm">|} ^ m.Logarion.Text.title ^ "</a><br>")
     86    (fun a m -> Printf.sprintf "%s<li> %s <a href=\"%s.htm\">%s</a>" a
     87      Logarion.(Date.(pretty_date (listing m.Text.date)))
     88      (Logarion.Text.short_id m) m.Logarion.Text.title)
    8989    "" meta_list
    9090
     
    147147  wrap conv htm "Topics"
    148148    (fold_topic_roots topic_roots
    149      ^ "<nav><h1>Latest</h1>" ^ to_dated_links ~limit:10 metas
    150      ^ {|<a href="index.date.htm">More by date</a></nav>|} )
     149     ^ "<nav><h1>Latest</h1><ul>" ^ to_dated_links ~limit:8 metas
     150     ^ {|</ul><a href="index.date.htm">More by date</a></nav>|} )
    151151
    152152let topic_sub_index conv htm topic_map topic_root metas =
Note: See TracChangeset for help on using the changeset viewer.