Skip to content
Permalink
Browse files

tag styling

  • Loading branch information...
jaymickey committed May 15, 2019
1 parent 2b4c306 commit e2618b0323dd88f75707abbb2c1cf10cc7331122
Showing with 25 additions and 1 deletion.
  1. +3 −1 layouts/channel/single.html
  2. +22 −0 static/css/breadtube.css
@@ -23,12 +23,14 @@ <h1 class="heading"><a href="{{ .Page.RelPermalink }}">{{ .Title }}</a></h1>
{{- end -}}
</ul>

<div class="tags">
{{ range $channel.tags }}
{{ if not (eq . "breadtube") }}
<a href="/channels/#search:{{ . | lower }}">{{ . }}</a>
<a href="/channels/#search:{{ . | lower }}" class="tag">{{ . }}</a>
{{ end }}
{{ end }}
</div>
</div>
</div>
<div class="content">
<p>{{ $channel.description | markdownify }}</p>
@@ -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 e2618b0

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