linaro-jekyll-theme 4.1.1 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 756d7402b28b07848743f83a9e6e57c6abb27722786e0df049445f338bb0ebd8
4
- data.tar.gz: bf19a183f36c41c556bd2e3a15503af49667c8e8225234535e3719fe021ea210
3
+ metadata.gz: 8e6496b64f5d839907f89ef6b760a9558bca7824e94952cf2ab89ca32dc2366b
4
+ data.tar.gz: a6add4a5623ade9512650c5f9b9eeac95f637aec85338e3a98c998637139994b
5
5
  SHA512:
6
- metadata.gz: 020b1d2206083b0a79a2e4e269f898ea33851c62dbf0a98c8e7f4696a989d72074c698f498d0cfa18f556103bbaab55ae4efbc44f63606e16e9b03f91c79e6a9
7
- data.tar.gz: a6ca0015b7d7eb587c136abf656d126611ecd7dc409808b728c6e2b574226278e2354c9e65c03d07acc099b13e243bf7e6b8ffe4c39cf94307e4c1f5b81bce68
6
+ metadata.gz: e95b99b539b840faa769eaece365cd7dcf780e132bdd34491d445f70cf774f841372f7e91427e3dc0cd4e783613f9163d3d505340c252044dc12cb546a7f2428
7
+ data.tar.gz: e1b8860cdb0b7f9896e988512d339316f7e069a75b56f7cbb413efda2e373b46ffc96064c6ca27158281012dbf15d79c3e3158cf8ce7426ea7c734f596e6464f
@@ -51,6 +51,7 @@ defaults:
51
51
  layout: post
52
52
  is_post: true
53
53
  comments: true
54
+ tags_enabled: false
54
55
  strap_image: /assets/images/breadcrumb-image.jpg
55
56
  - scope:
56
57
  path: ""
@@ -61,6 +62,8 @@ include: ["_pages"]
61
62
  # ----------- THEME / WEBSITE CONFIG ---------------------
62
63
  # Blog images/thumbs dir
63
64
  blog_images_dir: assets/images/content/
65
+ # Blog Tag limit
66
+ tag_limit: 10
64
67
  # The default number of posts to display on a given post index page
65
68
  # used in the _includes/blog/display_latest_posts.html include
66
69
  post_limit: 10
@@ -53,12 +53,14 @@
53
53
  </div>
54
54
  <h5 class="card-title">{{post.title}}</h5>
55
55
  <h6 class="card-subtitle mb-2 text-muted">{{ post.date | date: "%A, %B %-d, %Y"}}</h6>
56
- {% assign post_tags = post.tags | split: " " %}
57
- {% for tag in post.tags %}
58
- <a class="btn bg-light text-dark btn-sm my-1" href="/{{post.category}}/tags/?tag={{tag}}">
59
- {{tag}}
60
- </a>
61
- {% endfor %}
56
+ {% if page.tags_enabled %}
57
+ {% assign post_tags = post.tags | sort %}
58
+ {% for tag in post_tags limit: site.tag_limit %}
59
+ <a class="btn bg-light text-dark btn-sm my-1" href="/{{post.category | downcase}}/tags/?tag={{tag}}">
60
+ {{tag}}
61
+ </a>
62
+ {% endfor %}
63
+ {% endif %}
62
64
  <p class="card-text">
63
65
  {% if post.description %}
64
66
  {{post.description | truncate: 184 }}
@@ -114,14 +116,16 @@
114
116
  {{ post.content | strip_html | truncatewords:30 }}
115
117
  {% endif %}
116
118
  </p>
117
- {% assign post_tags = post.tags | split: " " %}
118
- <div class="d-block mt-auto">
119
- {% for tag in post.tags %}
120
- <a class="btn bg-light text-dark btn-sm my-1" href="/{{post.category}}/tags/?tag={{tag}}">
121
- {{tag}}
122
- </a>
123
- {% endfor %}
124
- </div>
119
+ {% if page.tags_enabled %}
120
+ {% assign post_tags = post.tags | sort %}
121
+ <div class="d-block mt-auto">
122
+ {% for tag in post_tags limit: site.tag_limit %}
123
+ <a class="btn bg-light text-dark btn-sm my-1" href="/{{post.category | downcase}}/tags/?tag={{tag}}">
124
+ {{tag}}
125
+ </a>
126
+ {% endfor %}
127
+ </div>
128
+ {% endif %}
125
129
  </div>
126
130
  </div>
127
131
 
@@ -1,21 +1,25 @@
1
1
  <div class="col col-12 tags">
2
- {% for tag in site.tags %}
2
+ <div id="tag_cloud" class="d-none">
3
+ {% assign site_tags = site.tags | sort %}
4
+ {% for tag in site_tags %}
3
5
  {% for post in tag[1] %}
4
6
  {% if include.object.category %}
5
7
  {% if post.category == include.object.category %}
6
- <a class="btn btn-secondary" href="?tag={{tag[0]}}">
8
+ <a class="btn btn-secondary my-2" href="?tag={{tag[0]}}">
7
9
  {{tag[0]}}
8
10
  </a>
9
11
  {% break %}
10
12
  {% endif %}
11
13
  {% else %}
12
- <a class="btn btn-secondary" href="?tag={{tag[0]}}">
14
+ <a class="btn btn-secondary my-2" href="?tag={{tag[0]}}">
13
15
  {{tag[0]}}
14
16
  </a>
15
17
  {% break %}
16
18
  {% endif %}
17
19
  {% endfor %}
18
20
  {% endfor %}
21
+ </div>
22
+ <a type="button" class="btn btn-secondary d-none" id="view_all_tags_btn">View all tags</a>
19
23
  </div>
20
24
  <div class="col col-12 tagged_posts" id="tagged_posts">
21
25
  {% for tag in site.tags %}
@@ -52,16 +52,18 @@ css_package: blog
52
52
  </div>
53
53
  </div>
54
54
  </div>
55
+ {% if page.tags_enabled %}
55
56
  <div class="col col-12">
56
57
  <div class="post_tags text-center text-md-left my-2 my-sm-1">
57
- {% assign post_tags = page.tags | split: " " %}
58
- {% for tag in page.tags %}
59
- <a class="btn bg-light text-dark btn-sm my-1" href="/{{page.category | downcase }}/tags/?tag={{tag}}" data-toggle="tooltip" data-placement="top" title="View {{page.category}} post tagged {{tag}}">
58
+ {% assign post_tags = page.tags | sort %}
59
+ {% for tag in post_tags limit: site.tag_limit %}
60
+ <a class="btn bg-light text-dark btn-sm my-1" href="/{{page.category | downcase }}/tags/?tag={{tag}}">
60
61
  {{tag}}
61
62
  </a>
62
63
  {% endfor %}
63
64
  </div>
64
65
  </div>
66
+ {% endif %}
65
67
  </div>
66
68
  </div>
67
69
  </div>
@@ -35,7 +35,14 @@
35
35
  width: 200px;
36
36
  display: block;
37
37
  float: left;
38
- margin: 0px 20px;
38
+ margin: 10px 20px;
39
+ }
40
+ }
41
+ &.small-center {
42
+ @include media-breakpoint-up(md) {
43
+ width: 200px;
44
+ display: block;
45
+ margin: 20px auto;
39
46
  }
40
47
  }
41
48
  &.medium-inline {
@@ -43,7 +50,14 @@
43
50
  width: 300px;
44
51
  display: block;
45
52
  float: left;
46
- margin: 0px 20px;
53
+ margin: 10px 20px;
54
+ }
55
+ }
56
+ &.medium-center {
57
+ @include media-breakpoint-up(md) {
58
+ width: 300px;
59
+ display: block;
60
+ margin: 20px auto;
47
61
  }
48
62
  }
49
63
  &.large-inline {
@@ -51,7 +65,14 @@
51
65
  width: 400px;
52
66
  display: block;
53
67
  float: left;
54
- margin: 0px 20px;
68
+ margin: 10px 20px;
69
+ }
70
+ }
71
+ &.large-center {
72
+ @include media-breakpoint-up(md) {
73
+ width: 400px;
74
+ display: block;
75
+ margin: 20px auto;
55
76
  }
56
77
  }
57
78
  &.right {
@@ -68,7 +68,14 @@ $(document).ready(function () {
68
68
  console.log(tag);
69
69
  $(".tag_list").addClass("d-none");
70
70
  $(`.tag_list.${slugify(tag)}`).addClass("d-block");
71
+ $(`#tag_cloud`).addClass("d-none");
72
+ $(`#view_all_tags_btn`).addClass("d-inline-block");
71
73
  $(this).html(tag);
74
+ $("#view_all_tags_btn").on("click", function () {
75
+ window.location.replace(window.location.pathname);
76
+ });
77
+ } else {
78
+ $(`#tag_cloud`).removeClass("d-none");
72
79
  }
73
80
  }
74
81
  if ($("#jumbotron-slider").length > 0) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linaro-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2020-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll