Skip to content

Commit

Permalink
make tags less visually strong
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Sep 12, 2020
1 parent bb7ddee commit 9827abc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h3 class="post-subtitle">

{% if site.feed_show_tags != false and post.tags.size > 0 %}
<div class="blog-tags">
Tags:
<span>Tags:</span>
{% for tag in post.tags %}
<a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

{% if page.tags.size > 0 %}
<div class="blog-tags">
Tags:
<span>Tags:</span>
{% for tag in page.tags %}
<a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %}
Expand Down
17 changes: 12 additions & 5 deletions assets/css/beautifuljekyll.css
Original file line number Diff line number Diff line change
Expand Up @@ -540,21 +540,28 @@ footer .footer-custom-content {

.blog-tags {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #999;
font-size: 0.9375rem;
margin-bottom: 1.875rem;
}

.blog-tags span {
color: {{ site.text-col | default: "#404040" }};
opacity: 0.8;
}

.blog-tags a {
color: {{ site.link-col | default: "#008AFF" }};
color: {{ site.text-col | default: "#404040" }};
text-decoration: none;
padding: 0 0.3125rem;
opacity: 0.8;
border: 1px solid transparent;
border-radius: 2px;
}

.blog-tags a:hover {
border-radius: 2px;
color: {{ site.hover-col | default: "#0085A1" }};
background-color: #EEE;
opacity: 1;
color: {{ site.text-col | default: "#404040" }};
border-color: {{ site.text-col | default: "#404040" }};
}

.post-preview .blog-tags {
Expand Down

0 comments on commit 9827abc

Please sign in to comment.