plan9fox/werc/apps/wman/page_list.tpl

12 lines
292 B
Smarty
Raw Permalink Normal View History

2022-06-30 15:40:21 +00:00
% d=`{wman_get_section_desc $wman_cat}
<h1>Manual pages - Section %($wman_cat%): %($"d%)</h1>
<ul style="float:left">
%{
wman_ls_pages $wman_cat_path \
| awk -F/ '{ print "<li><a href=\""$(NF)"\">"$(NF)"</a></li>" }
NR%20 == 0 { print "</ul><ul style=\"float: left\">" }'
%}
</ul>