jekyll-theme-bootstrap4 0.0.7 → 0.0.10

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: 912bff16684c2998bbae20351b04dc9f368005f5e13f7697270d05b21623d175
4
- data.tar.gz: ef4208be9f988e548cb877515920232dd722341c07d2fb95f2300e49cad95d08
3
+ metadata.gz: 6cc7e32e7fef7b211dcac9e56a6e95e83d6f3ad7f09edca3039e03e678350bab
4
+ data.tar.gz: be323ead4ab66b1aed239015fc36ca6cb416cbf7d3c2900af1183f3b687198e5
5
5
  SHA512:
6
- metadata.gz: 38cbb7c8717b1991e8ee4cd8760ee09db2ff04465cd2bb784d558d68a95349e90279037506c5de7d4f86a15aa6cda22d082e54e734f05fb16db681dd414eef5b
7
- data.tar.gz: 886650bb1d031efe050e10089cb829b68a78b8c5869c859878343497f61a2c559ca0d760ba9265de2e9b2b75b04c7af299417fee26484663ca9ef30f784f4218
6
+ metadata.gz: baa5af26e74e955bf9e6fdcaed92eb0ddc6198c93ef16c0840e15215b89015ca24976186ac782ac88cdbde9a4445a9b175480f5d006687582a5b14832a992c49
7
+ data.tar.gz: ed633ba6155968245dfaaca0a09d1384a4d7fa0c7ca0e810efce4bcd6c105cd539f5b277811dbc47a39e386403758d4c036c70cf6e452ec0b16de046a39909a7
@@ -1,24 +1,26 @@
1
1
  <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
2
- {% if page.type == "home" and paginator.page == 1 %}
3
- <a href="{{ "/" | relative_url }}" class="navbar-brand">{{ site.title | liquify }}</a>
4
- {% else %}
5
- <a href="{{ "/" | relative_url }}" class="navbar-brand">{{ site.title | liquify }}</a>
6
- {% endif %}
7
- <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
8
- <span class="navbar-toggler-icon"></span>
9
- </button>
10
- <div class="collapse navbar-collapse" id="navbarNav">
11
- <div class="navbar-nav mr-auto">
12
- {% assign pages = site.pages | sort: 'title' %}
13
- {% for item in pages %}
14
- {% if item.type == "page" %}
15
- {% if item.title == page.title %}
16
- <a href="{{ item.url | relative_url }}" class="nav-item nav-link active">{{ item.title | liquify }}</a>
17
- {% else %}
18
- <a href="{{ item.url | relative_url }}" class="nav-item nav-link">{{ item.title | liquify }}</a>
2
+ <div class="container-md">
3
+ {% if page.type == "home" and paginator.page == 1 %}
4
+ <a href="{{ "/" | relative_url }}" class="navbar-brand">{{ site.title | liquify }}</a>
5
+ {% else %}
6
+ <a href="{{ "/" | relative_url }}" class="navbar-brand">{{ site.title | liquify }}</a>
7
+ {% endif %}
8
+ <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
9
+ <span class="navbar-toggler-icon"></span>
10
+ </button>
11
+ <div class="collapse navbar-collapse" id="navbarNav">
12
+ <div class="navbar-nav mr-auto">
13
+ {% assign pages = site.pages | sort: 'title' %}
14
+ {% for item in pages %}
15
+ {% if item.type == "page" %}
16
+ {% if item.title == page.title %}
17
+ <a href="{{ item.url | relative_url }}" class="nav-item nav-link active">{{ item.title | liquify }}</a>
18
+ {% else %}
19
+ <a href="{{ item.url | relative_url }}" class="nav-item nav-link">{{ item.title | liquify }}</a>
20
+ {% endif %}
19
21
  {% endif %}
20
- {% endif %}
21
- {% endfor %}
22
+ {% endfor %}
23
+ </div>
22
24
  </div>
23
25
  </div>
24
26
  </nav>
data/_includes/post.html CHANGED
@@ -1,6 +1,6 @@
1
1
  <article itemscope itemtype="http://schema.org/BlogPosting">
2
- <h1 itemprop="headline"><a href="{{ include.post.url | relative_url }}">{{ include.post.title }}</a></h1>
3
- <p>{% if include.post.author %}By <span itemprop="author">{{ include.post.author }}</span> on {% endif %}<time itemprop="datePublished" datetime="{{ include.post.date | date_to_xmlschema }}">{{ include.post.date | date: "%B %-d, %Y" }}</time>{% if include.post.updated %}. Last updated on <time itemprop="dateModified" datetime="{{ include.post.updated | date_to_xmlschema }}">{{ include.post.updated | date: "%B %-d, %Y" }}</time>{% endif %}{% if include.post.comments %}. <a href="{{ include.post.url | relative_url }}#disqus_thread" data-disqus-identifier="{{ include.post.url | relative_url }}"></a>{% endif %}</p>
2
+ <h1 itemprop="headline">{{ include.post.title }}</h1>
3
+ <p itemprop="description">{% if include.post.author %}By <span itemprop="author">{{ include.post.author }}</span> on {% endif %}<time itemprop="datePublished" datetime="{{ include.post.date | date_to_xmlschema }}">{{ include.post.date | date: "%B %-d, %Y" }}</time>{% if include.post.updated %}. Last updated on <time itemprop="dateModified" datetime="{{ include.post.updated | date_to_xmlschema }}">{{ include.post.updated | date: "%B %-d, %Y" }}</time>{% endif %}{% if include.post.comments %}. <a href="{{ include.post.url | relative_url }}#disqus_thread" data-disqus-identifier="{{ include.post.url | relative_url }}"></a>{% endif %}</p>
4
4
  <div itemprop="articleBody">
5
5
  {% if page.type == "home" and site.excerpts %}
6
6
  {{ include.post.excerpt | markdownify }}
data/_layouts/blog.html CHANGED
@@ -3,11 +3,11 @@ layout: default
3
3
  type: blog
4
4
  ---
5
5
 
6
- <div class="row">
6
+ <div class="row mb-3">
7
7
  <div class="col">
8
8
  <main>
9
9
  {% for post in paginator.posts %}
10
- <div class="row">
10
+ <div class="row mb-3">
11
11
  <div class="col">
12
12
  {% include post.html post=post %}
13
13
  </div>
@@ -9,52 +9,6 @@
9
9
  <link href="{{ "/rss.xml" | relative_url }}" rel="alternate" type="application/rss+xml">
10
10
  <link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css" crossorigin="anonymous" rel="stylesheet">
11
11
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" crossorigin="anonymous" rel="stylesheet">
12
- <style>
13
- :root {
14
- --color-black: #000;
15
- --color-gray-100: #f8f9fa;
16
- --color-gray-200: #e9ecef;
17
- --color-gray-300: #dee2e6;
18
- --color-gray-400: #ced4da;
19
- --color-gray-500: #adb5bd;
20
- --color-gray-600: #6c757d;
21
- --color-gray-700: #495057;
22
- --color-gray-800: #343a40;
23
- --color-gray-900: #212529;
24
- --color-white: #fff;
25
- }
26
-
27
- article > h1 a {
28
- color: var(--color-gray-900);
29
- }
30
-
31
- article > h1 a:hover {
32
- color: var(--color-gray-900);
33
- text-decoration: none;
34
- }
35
-
36
- main > .row {
37
- margin-bottom: 2rem;
38
- }
39
-
40
- .container > .row:first-of-type {
41
- margin-top: 3.5rem;
42
- }
43
-
44
- .container > .row:last-of-type {
45
- margin-bottom: 3.5rem;
46
- }
47
-
48
- .pagination > .page-item > .page-link {
49
- color: var(--color-gray-900);
50
- }
51
-
52
- .pagination > .page-item.active > .page-link {
53
- color: var(--color-gray-900);
54
- background-color: var(--color-gray-200);
55
- border-color: var(--color-gray-300);
56
- }
57
- </style>
58
12
  {% if site.author %}
59
13
  <meta name="author" content="{{ site.author }}">
60
14
  {% endif %}
@@ -64,7 +18,7 @@
64
18
  </head>
65
19
  <body>
66
20
  {% include navigation.html %}
67
- <div class="container">
21
+ <div class="container-sm my-3 my-lg-5">
68
22
  {{ content }}
69
23
  </div>
70
24
  <script src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" crossorigin="anonymous"></script>
data/_layouts/post.html CHANGED
@@ -3,7 +3,7 @@ layout: default
3
3
  type: post
4
4
  ---
5
5
 
6
- <div class="row">
6
+ <div class="row mb-3">
7
7
  <div class="col">
8
8
  <main>
9
9
  <div class="row">
@@ -6,7 +6,7 @@ module Jekyll
6
6
  "#{site.config['url']}/#{site.config['baseurl']}/#{site.config['categories_dir']}/#{category.tr(' ', '-')}/"
7
7
  else
8
8
  "#{site.config['url']}/#{site.config['baseurl']}/categories/#{category.tr(' ', '-')}/"
9
- end
9
+ end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
10
10
  end
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Jekyll
6
6
  "#{site.config['url']}/#{site.config['baseurl']}/#{site.config['tags_dir']}/#{tag.tr(' ', '-')}/"
7
7
  else
8
8
  "#{site.config['url']}/#{site.config['baseurl']}/tags/#{tag.tr(' ', '-')}/"
9
- end
9
+ end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
10
10
  end
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-bootstrap4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon de C Valle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-09 00:00:00.000000000 Z
11
+ date: 2022-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,20 +38,34 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: webrick
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.7'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.7'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: jekyll
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '4.1'
61
+ version: '4.2'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '4.1'
68
+ version: '4.2'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: jekyll-paginate
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -138,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
152
  - !ruby/object:Gem::Version
139
153
  version: '0'
140
154
  requirements: []
141
- rubygems_version: 3.0.3
155
+ rubygems_version: 3.0.3.1
142
156
  signing_key:
143
157
  specification_version: 4
144
158
  summary: A Bootstrap-based Jekyll theme.