Skip to content

Commit

Permalink
use CSS to create comma separated list
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang committed Jul 27, 2016
1 parent c976a80 commit 9fbba35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions public/css/tag-index.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ a.label:hover {
padding: 5px 10px 5px;
color: #268bd2;
}

/* use CSS to create comma separated list */
.tag-pages li + li:before {
content: ", ";
}

.tag-page {
list-style-type: none;
display: inline;
}
2 changes: 1 addition & 1 deletion tags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{% for annotation in site.annotations|sort: 'sort_order' %}
{% if annotation.tags contains tag[0] %}
{% assign annotated_page=site.volume_pages[annotation.page_index] %}
<a href="{{ site.baseurl }}{{ annotation.url }}" title="full page annotation view">{{ annotated_page.short_label }} {{ annotated_page.number }}</a>
<li class="tag-page"><a href="{{ site.baseurl }}{{ annotation.url }}" title="full page annotation view">{{ annotated_page.short_label }} {{ annotated_page.number }}</a></li>
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit 9fbba35

Please sign in to comment.