Skip to content
Permalink
Browse files

Show tags (not breadtube) on channels (#264)

Show tags (not breadtube) on channels

Co-authored-by: Josh Michielsen <jaymickey@users.noreply.github.com>
  • Loading branch information...
jaymickey committed May 16, 2019
2 parents cab4067 + e2618b0 commit 4521f8a9960920e1d3490ca8c8e26e5639bffe36
Showing with 30 additions and 0 deletions.
  1. +8 −0 layouts/channel/single.html
  2. +22 −0 static/css/breadtube.css
@@ -22,6 +22,14 @@ <h1 class="heading"><a href="{{ .Page.RelPermalink }}">{{ .Title }}</a></h1>
</li>
{{- end -}}
</ul>

<div class="tags">
{{ range $channel.tags }}
{{ if not (eq . "breadtube") }}
<a href="/channels/#search:{{ . | lower }}" class="tag">{{ . }}</a>
{{ end }}
{{ end }}
</div>
</div>
</div>
<div class="content">
@@ -789,3 +789,25 @@ button, select, input, textarea { font-family: inherit; }
.d-none {
display: none;
}

.tags {
margin-top: 5px;
}

.tag {
background: #aaa;
border-radius: 3px 3px 3px 3px;
color: #000;
display: inline-block;
vertical-align: middle;
line-height: 15px;
padding: 8px;
position: relative;
text-decoration: none;
-webkit-transition: color 0.2s;
}

.tag:hover {
background-color: #880e7d;
color: white;
}

0 comments on commit 4521f8a

Please sign in to comment.
You can’t perform that action at this time.