Skip to content

Commit

Permalink
fixed jumbotron categories links
Browse files Browse the repository at this point in the history
  • Loading branch information
wowthemesnet committed Mar 5, 2019
1 parent 84ce0f5 commit 1c04373
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
21 changes: 13 additions & 8 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ <h1 class="sitetitle">{{ site.name }}</h1>
</div>
{% endif %}

</div><!-- /.container>
</div>

<!-- Categories Jumbotron
================================================== -->
<div class="jumbotron fortags">
Expand All @@ -157,18 +157,23 @@ <h2 class="d-md-block align-self-center py-1 font-weight-light">Explore <span cl
<div class="col-md-8 p-5 align-self-center text-center">
{% assign categories_list = site.categories %}
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
<a href="{{site.baseurl}}/categories#{{ category | downcase | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category | camelcase }} ({{ site.tags[category].size }})</a>
{% endfor %}
{% for category in categories_list %}
<a href="{{site.baseurl}}/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{ category | camelcase }} ({{ site.tags[category].size }})</a>
{% endfor %}
{% else %}
{% for category in categories_list %}
<a href="{{site.baseurl}}/categories#{{ category[0] | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category[0] | camelcase }} ({{ category[1].size }})</a>
{% endfor %}
{% for category in categories_list %}
<a href="{{site.baseurl}}/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{ category[0] | camelcase }} ({{ category[1].size }})</a>
{% endfor %}
{% endif %}
{% assign categories_list = nil %}
</div>



</div>
</div>





Expand Down
4 changes: 2 additions & 2 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ License: https://www.wowthemes.net/freebies-license/
.listfeaturedtag h4.card-text,.listrecent h4.card-text {
color:rgba(0,0,0,.44);
font-size:0.95rem;
line-height:1.4;
line-height:1.6;
font-weight:400;
}
.wrapfooter {
Expand Down Expand Up @@ -668,7 +668,7 @@ License: https://www.wowthemes.net/freebies-license/

.spoiler {
color: transparent;
text-shadow:0 0 6px rgba(0,0,0,0.2);
text-shadow:0 0 10px rgba(0,0,0,0.2);
transition: all .4s;
cursor:pointer;
position:relative;
Expand Down

0 comments on commit 1c04373

Please sign in to comment.