Skip to content

Instantly share code, notes, and snippets.

@esparkman
Created May 12, 2017 01:04
Show Gist options
  • Save esparkman/dc15b5a5353812d3a53bc8ee552ffd2b to your computer and use it in GitHub Desktop.
Save esparkman/dc15b5a5353812d3a53bc8ee552ffd2b to your computer and use it in GitHub Desktop.
tag.pug
extends layout
block content
.inner
h2 #{tag || 'Tags'}
ul.tags
each tag in tags
li.tag
a.tag__link(
href=`/tags/${tag._id}`
class=(tag._id === tag ? 'tag__link--active' : '')
)
span.tag__text= tag._id
span.tag__count= tag.count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment