Skip to content

Commit 87aecdd

Browse files
committed
Experiment with Library page layout
1 parent ec34618 commit 87aecdd

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

generate/contributions.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,18 @@ function anchorSafe($input){
9191
if($category != 'Legacy'){
9292
$librariesHTML .= '<div id="'.anchorSafe($category).'">'."\n\t";
9393
$librariesHTML .= '<h4>'.$category.'</h4>'."\n";
94-
#$librariesHTML .= "\t<ul>\n";
95-
$librariesHTML .= "\t<table>\n";
94+
$librariesHTML .= "\t<ul>\n";
9695
$libs = array_filter($clean['library'], function($obj) use($category){ return $obj['category'] == $category; });
9796

9897
foreach($libs as $lib) {
99-
$librariesHTML .= "\t\t<tr><td style="width:34%">\n";
98+
$librariesHTML .= "\t\t<li>\n";
10099
$librariesHTML .= "\t\t\t".'<h5><a href="'.$lib['url'].'">'.$lib['name'].'</a></h5>'."\n";
101-
$piece = "<td style="width:66%">";
102-
$librariesHTML .= "\t\t\t".'<span>by '.linkParse($lib['authorList']).'</span></td>'.$piece."\n";
100+
$librariesHTML .= "\t\t\t".'<span>by '.linkParse($lib['authorList']).'</span>'."\n";
103101
$librariesHTML .= strlen(trim($lib['sentence'])) ? "\t\t\t".'<p>'.linkParse($lib['sentence']).'</p>'."\n" : "\n";
104-
$librariesHTML .= "\t\t</td></tr>\n";
102+
$librariesHTML .= "\t\t</li>\n";
105103
}
106104

107-
#$librariesHTML .= "\t</ul>\n";
108-
$librariesHTML .= "\t</table>\n";
105+
$librariesHTML .= "\t</ul>\n";
109106
$librariesHTML .= '</div>'."\n\n";
110107
}
111108
}

0 commit comments

Comments
 (0)