entities = provider.getEntityStats(catActive);
if (entities.size() > 0) {
- buf.append("Hot topics: ");
+ buf.append("<nav>");
buf.append("<ul>");
i = 0;
for (EntityStat s: entities) {
buf.append("<li>");
buf.append(s.getEntity());
- buf.append("</li>");
+ buf.append("</li>\n");
i++;
if (i > 10)
break;
}
- buf.append("</ul>");
+ buf.append("</ul>\n");
+ buf.append("</nav>\n");
}
} catch (IllegalArgumentException | FeedException | IOException e2) {
LOG.log(Level.SEVERE, "Failed to get entities", e2);