jekyll-theme-bootstrap4 0.0.8 → 0.0.11

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: 79252f8939c15a946acf5052e841b3f8097d552dab737a3fae8c985645c8a1a4
4
- data.tar.gz: a34b3e4102e5d146d24eb6d1f33186db17d10e8302ae8e44973cfe5b2b6bf521
3
+ metadata.gz: cf1e43b479eb401750bdbd558ac4ef580089248e1c0a59c0075ddd46abb321a7
4
+ data.tar.gz: 17964cf39192532de974a045d56bc5c3c92c6343724cbd7446d8fa5ca6e11cf9
5
5
  SHA512:
6
- metadata.gz: 2c6d0d474c24d4a18e34c50d49b13c7309fee7169ddb59cb6940fed7feb16c7037b2c383be91c490a12ce46b16c24a08185388e15a8ef453370693549af29c3e
7
- data.tar.gz: 961f6c5aa7c32a3285591c3d17173183e75ffb26ce0b7313526764c26400e44cee37a61c8105c92affe63d3abb49f68449b854da7d16474b9e918e522a51a724
6
+ metadata.gz: 114f2d94b241998856dab1105d06d84877fcb19bc19377b4dd8171baf710466246b487590440a3bcfadc2c7820fe1215a84fce15d56fac61db8d3585df6e842c
7
+ data.tar.gz: f559dcba0fffbab71151df659c65e39e2eba0d9ea192ff0d0c8c7be33b7215301a6d187442bc450c7e9d2e0c609468a6fdcfc9bcaba2f82642d0da137f9d8d66
@@ -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,10 +1,10 @@
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>
2
+ <h1 itemprop="headline">{{ include.post.title }}</h1>
3
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 }}
7
- <p><a href="{{ post.url }}">Read more&hellip;</a></p>
7
+ <p><a href="{{ include.post.url | relative_url }}">Read more&hellip;</a></p>
8
8
  {% else %}
9
9
  {{ include.post.content | markdownify }}
10
10
  {% endif %}
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">
@@ -2,11 +2,11 @@ module Jekyll
2
2
  module CategoryFilter
3
3
  def category_url(category)
4
4
  site = @context.registers[:site]
5
- if site.config['categories_dir']
6
- "#{site.config['url']}/#{site.config['baseurl']}/#{site.config['categories_dir']}/#{category.tr(' ', '-')}/"
5
+ if site.config["categories_dir"]
6
+ "#{site.config["url"]}/#{site.config["baseurl"]}/#{site.config["categories_dir"]}/#{category.tr(" ", "-")}/"
7
7
  else
8
- "#{site.config['url']}/#{site.config['baseurl']}/categories/#{category.tr(' ', '-')}/"
9
- end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
8
+ "#{site.config["url"]}/#{site.config["baseurl"]}/categories/#{category.tr(" ", "-")}/"
9
+ end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? "//" : "/" }
10
10
  end
11
11
  end
12
12
  end
@@ -4,12 +4,12 @@ module Jekyll
4
4
  @site = site
5
5
  @base = base
6
6
  @dir = dir
7
- @name = 'index.html'
7
+ @name = "index.html"
8
8
 
9
- self.process(@name)
10
- self.read_yaml(File.join(base, '_layouts'), 'category.html')
11
- self.data['category'] = category
12
- self.data['title'] = "Posts in &#8220;#{category.capitalize}&#8221;"
9
+ process(@name)
10
+ read_yaml(File.join(base, "_layouts"), "category.html")
11
+ data["category"] = category
12
+ data["title"] = "Posts in &#8220;#{category.capitalize}&#8221;"
13
13
  end
14
14
  end
15
15
 
@@ -17,9 +17,12 @@ module Jekyll
17
17
  safe true
18
18
 
19
19
  def generate(site)
20
- if site.layouts.key?('category')
21
- dir = site.config['categories_dir'] || 'categories'
22
- site.categories.keys.each { |category| site.pages << CategoryPage.new(site, site.source, File.join(dir, category.tr(' ', '-')), category) }
20
+ if site.layouts.key?("category")
21
+ dir = site.config["categories_dir"] || "categories"
22
+ site.categories.keys.each do |category|
23
+ page = CategoryPage.new(site, site.source, File.join(dir, category.tr(" ", "-")), category)
24
+ site.pages << page
25
+ end
23
26
  end
24
27
  end
25
28
  end
@@ -2,11 +2,11 @@ module Jekyll
2
2
  module TagFilter
3
3
  def tag_url(tag)
4
4
  site = @context.registers[:site]
5
- if site.config['tags_dir']
6
- "#{site.config['url']}/#{site.config['baseurl']}/#{site.config['tags_dir']}/#{tag.tr(' ', '-')}/"
5
+ if site.config["tags_dir"]
6
+ "#{site.config["url"]}/#{site.config["baseurl"]}/#{site.config["tags_dir"]}/#{tag.tr(" ", "-")}/"
7
7
  else
8
- "#{site.config['url']}/#{site.config['baseurl']}/tags/#{tag.tr(' ', '-')}/"
9
- end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
8
+ "#{site.config["url"]}/#{site.config["baseurl"]}/tags/#{tag.tr(" ", "-")}/"
9
+ end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? "//" : "/" }
10
10
  end
11
11
  end
12
12
  end
@@ -4,12 +4,12 @@ module Jekyll
4
4
  @site = site
5
5
  @base = base
6
6
  @dir = dir
7
- @name = 'index.html'
7
+ @name = "index.html"
8
8
 
9
- self.process(@name)
10
- self.read_yaml(File.join(base, '_layouts'), 'tag.html')
11
- self.data['tag'] = tag
12
- self.data['title'] = "Posts tagged with &#8220;#{tag}&#8221;"
9
+ process(@name)
10
+ read_yaml(File.join(base, "_layouts"), "tag.html")
11
+ data["tag"] = tag
12
+ data["title"] = "Posts tagged with &#8220;#{tag}&#8221;"
13
13
  end
14
14
  end
15
15
 
@@ -17,9 +17,12 @@ module Jekyll
17
17
  safe true
18
18
 
19
19
  def generate(site)
20
- if site.layouts.key?('tag')
21
- dir = site.config['tags_dir'] || 'tags'
22
- site.tags.keys.each { |tag| site.pages << TagPage.new(site, site.source, File.join(dir, tag.tr(' ', '-')), tag) }
20
+ if site.layouts.key?("tag")
21
+ dir = site.config["tags_dir"] || "tags"
22
+ site.tags.keys.each do |tag|
23
+ page = TagPage.new(site, site.source, File.join(dir, tag.tr(" ", "-")), tag)
24
+ site.pages << page
25
+ end
23
26
  end
24
27
  end
25
28
  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.8
4
+ version: 0.0.11
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-03-23 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '2.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.1'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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.