jekyll - make a list of page.tags -
i'm new jekyll , working on building site.
i have "posts" layout i'd have tags associated post appear in left column. problem i'm running using {{ page.tags }} returns list of tags not comma-separated , looks messy. see here example.
the html code layout page is:
<div class="span3"> </br> <img src="{{ page.root }}assets/img/glyphicons_045_calendar.png" /> {{ page.date | > date: "%d %b %y" }} </br> <img src="{{ page.root }}assets/img/glyphicons_066_tags.png" /> {{ page.tags }} </div> <div class="span9"> <h1> {{ page.title }} </h1> {{ content }} </div>
any advice on how (a) tags list comma-separated , (b) wrap around stays within left column? thanks!
you might try put them inside <p>
tag can wrap around.
to have them comma-separated, can follow jekyll docs , use:
{{ page.tags | array_to_sentence_string }} => foo, bar, , baz
as said in jekyll wiki.
Comments
Post a Comment