jekyll-theme-bootstrap4 0.0.1 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/_config.yml +3 -0
- data/_includes/analytics.html +11 -0
- data/_includes/disqus.html +1 -2
- data/_includes/navigation.html +1 -1
- data/_includes/post.html +7 -2
- data/_layouts/default.html +27 -6
- data/_plugins/category_filter.rb +5 -1
- data/_plugins/tag_filter.rb +5 -1
- data/atom.xml +10 -4
- data/rss.xml +6 -4
- metadata +24 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 912bff16684c2998bbae20351b04dc9f368005f5e13f7697270d05b21623d175
|
4
|
+
data.tar.gz: ef4208be9f988e548cb877515920232dd722341c07d2fb95f2300e49cad95d08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38cbb7c8717b1991e8ee4cd8760ee09db2ff04465cd2bb784d558d68a95349e90279037506c5de7d4f86a15aa6cda22d082e54e734f05fb16db681dd414eef5b
|
7
|
+
data.tar.gz: 886650bb1d031efe050e10089cb829b68a78b8c5869c859878343497f61a2c559ca0d760ba9265de2e9b2b75b04c7af299417fee26484663ca9ef30f784f4218
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
jekyll-theme-bootstrap4
|
2
2
|
=======================
|
3
3
|
|
4
|
-
|
4
|
+
![Build Status](https://github.com/rcvalle/jekyll-theme-bootstrap4/workflows/build/badge.svg)
|
5
5
|
|
6
6
|
A [Bootstrap-based](https://getbootstrap.com/) Jekyll theme.
|
7
7
|
|
@@ -73,5 +73,5 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
73
73
|
License
|
74
74
|
-------
|
75
75
|
|
76
|
-
Licensed under the MIT
|
76
|
+
Licensed under the MIT License. See [LICENSE](LICENSE) for license text and
|
77
77
|
copyright information.
|
data/_config.yml
CHANGED
data/_includes/analytics.html
CHANGED
@@ -9,3 +9,14 @@
|
|
9
9
|
ga('send', 'pageview');
|
10
10
|
</script>
|
11
11
|
{% endif %}
|
12
|
+
{% if site.gtag %}
|
13
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
14
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gtag }}"></script>
|
15
|
+
<script>
|
16
|
+
window.dataLayer = window.dataLayer || [];
|
17
|
+
function gtag(){dataLayer.push(arguments);}
|
18
|
+
gtag('js', new Date());
|
19
|
+
|
20
|
+
gtag('config', '{{ site.gtag }}');
|
21
|
+
</script>
|
22
|
+
{% endif %}
|
data/_includes/disqus.html
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
{% if site.disqus_shortname %}
|
2
2
|
<div id="disqus_thread"></div>
|
3
|
-
<script>
|
3
|
+
<script crossorigin="anonymous">
|
4
4
|
var disqus_config = function () {
|
5
5
|
this.page.url = '{{ page.url | absolute_url }}';
|
6
6
|
this.page.identifier = '{{ page.url | relative_url }}';
|
7
7
|
this.page.title = '{{ page.title }}';
|
8
|
-
this.page.category_id = '{{ page.categories.first | capitalize }}';
|
9
8
|
};
|
10
9
|
(function() {
|
11
10
|
var d = document, s = d.createElement('script');
|
data/_includes/navigation.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
{% else %}
|
5
5
|
<a href="{{ "/" | relative_url }}" class="navbar-brand">{{ site.title | liquify }}</a>
|
6
6
|
{% endif %}
|
7
|
-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
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
8
|
<span class="navbar-toggler-icon"></span>
|
9
9
|
</button>
|
10
10
|
<div class="collapse navbar-collapse" id="navbarNav">
|
data/_includes/post.html
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
<article itemscope itemtype="http://schema.org/BlogPosting">
|
2
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.comments %}. <a href="{{ include.post.url | relative_url }}#disqus_thread" data-disqus-identifier="{{ include.post.url | relative_url }}"></a>{% endif %}</p>
|
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>
|
4
4
|
<div itemprop="articleBody">
|
5
|
-
{
|
5
|
+
{% if page.type == "home" and site.excerpts %}
|
6
|
+
{{ include.post.excerpt | markdownify }}
|
7
|
+
<p><a href="{{ post.url }}">Read more…</a></p>
|
8
|
+
{% else %}
|
9
|
+
{{ include.post.content | markdownify }}
|
10
|
+
{% endif %}
|
6
11
|
</div>
|
7
12
|
<p>{% include post_tags.html post=include.post %}</p>
|
8
13
|
</article>
|
data/_layouts/default.html
CHANGED
@@ -7,14 +7,29 @@
|
|
7
7
|
<title>{{ page.title | liquify }}</title>
|
8
8
|
<link href="{{ "/atom.xml" | relative_url }}" rel="alternate" type="application/atom+xml">
|
9
9
|
<link href="{{ "/rss.xml" | relative_url }}" rel="alternate" type="application/rss+xml">
|
10
|
+
<link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css" crossorigin="anonymous" rel="stylesheet">
|
10
11
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" crossorigin="anonymous" rel="stylesheet">
|
11
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
|
+
|
12
27
|
article > h1 a {
|
13
|
-
color:
|
28
|
+
color: var(--color-gray-900);
|
14
29
|
}
|
15
30
|
|
16
31
|
article > h1 a:hover {
|
17
|
-
color:
|
32
|
+
color: var(--color-gray-900);
|
18
33
|
text-decoration: none;
|
19
34
|
}
|
20
35
|
|
@@ -31,15 +46,21 @@
|
|
31
46
|
}
|
32
47
|
|
33
48
|
.pagination > .page-item > .page-link {
|
34
|
-
color:
|
49
|
+
color: var(--color-gray-900);
|
35
50
|
}
|
36
51
|
|
37
52
|
.pagination > .page-item.active > .page-link {
|
38
|
-
color:
|
39
|
-
background-color:
|
40
|
-
border-color:
|
53
|
+
color: var(--color-gray-900);
|
54
|
+
background-color: var(--color-gray-200);
|
55
|
+
border-color: var(--color-gray-300);
|
41
56
|
}
|
42
57
|
</style>
|
58
|
+
{% if site.author %}
|
59
|
+
<meta name="author" content="{{ site.author }}">
|
60
|
+
{% endif %}
|
61
|
+
{% if site.description %}
|
62
|
+
<meta name="description" content="{{ site.description }}">
|
63
|
+
{% endif %}
|
43
64
|
</head>
|
44
65
|
<body>
|
45
66
|
{% include navigation.html %}
|
data/_plugins/category_filter.rb
CHANGED
@@ -2,7 +2,11 @@ module Jekyll
|
|
2
2
|
module CategoryFilter
|
3
3
|
def category_url(category)
|
4
4
|
site = @context.registers[:site]
|
5
|
-
|
5
|
+
if site.config['categories_dir']
|
6
|
+
"#{site.config['url']}/#{site.config['baseurl']}/#{site.config['categories_dir']}/#{category.tr(' ', '-')}/"
|
7
|
+
else
|
8
|
+
"#{site.config['url']}/#{site.config['baseurl']}/categories/#{category.tr(' ', '-')}/"
|
9
|
+
end
|
6
10
|
end
|
7
11
|
end
|
8
12
|
end
|
data/_plugins/tag_filter.rb
CHANGED
@@ -2,7 +2,11 @@ module Jekyll
|
|
2
2
|
module TagFilter
|
3
3
|
def tag_url(tag)
|
4
4
|
site = @context.registers[:site]
|
5
|
-
|
5
|
+
if site.config['tags_dir']
|
6
|
+
"#{site.config['url']}/#{site.config['baseurl']}/#{site.config['tags_dir']}/#{tag.tr(' ', '-')}/"
|
7
|
+
else
|
8
|
+
"#{site.config['url']}/#{site.config['baseurl']}/tags/#{tag.tr(' ', '-')}/"
|
9
|
+
end
|
6
10
|
end
|
7
11
|
end
|
8
12
|
end
|
data/atom.xml
CHANGED
@@ -3,11 +3,13 @@
|
|
3
3
|
<?xml version="1.0" encoding="utf-8"?>
|
4
4
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
5
5
|
<id>{{ "/" | absolute_url }}</id>
|
6
|
-
<link href="{{
|
6
|
+
<link href="{{ site.url }}"/>
|
7
7
|
<link href="{{ page.url | absolute_url }}" rel="self"/>
|
8
|
-
|
8
|
+
{% if site.copyright %}
|
9
|
+
<rights>{{ site.copyright }}</rights>
|
10
|
+
{% endif %}
|
9
11
|
<subtitle>{{ site.description }}</subtitle>
|
10
|
-
<title>{{ site.
|
12
|
+
<title>{{ site.title }}</title>
|
11
13
|
<updated>{{ site.posts.first.date | date_to_xmlschema }}</updated>
|
12
14
|
{% for post in site.posts %}
|
13
15
|
<entry>
|
@@ -24,7 +26,11 @@
|
|
24
26
|
<link href="{{ post.url | absolute_url }}"/>
|
25
27
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
26
28
|
<title>{{ post.title }}</title>
|
27
|
-
|
29
|
+
{% if post.updated %}
|
30
|
+
<updated>{{ post.updated | date_to_xmlschema }}</updated>
|
31
|
+
{% else %}
|
32
|
+
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
33
|
+
{% endif %}
|
28
34
|
</entry>
|
29
35
|
{% endfor %}
|
30
36
|
</feed>
|
data/rss.xml
CHANGED
@@ -3,10 +3,12 @@
|
|
3
3
|
<?xml version="1.0" encoding="utf-8"?>
|
4
4
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
5
5
|
<channel>
|
6
|
-
<title>{{ site.
|
7
|
-
<link>{{
|
6
|
+
<title>{{ site.title }}</title>
|
7
|
+
<link>{{ site.url }}</link>
|
8
8
|
<description>{{ site.description }}</description>
|
9
|
-
|
9
|
+
{% if site.copyright %}
|
10
|
+
<copyright>{{ site.copyright }}</copyright>
|
11
|
+
{% endif %}
|
10
12
|
<pubDate>{{ site.posts.first.date | date_to_rfc822 }}</pubDate>
|
11
13
|
<lastBuildDate>{{ site.posts.first.date | date_to_rfc822 }}</lastBuildDate>
|
12
14
|
<atom:link href="{{ page.url | absolute_url }}" rel="self"/>
|
@@ -23,7 +25,7 @@
|
|
23
25
|
<comments>{{ post.url | absolute_url }}#disqus_thread</comments>
|
24
26
|
<guid>{{ post.url | absolute_url }}</guid>
|
25
27
|
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
26
|
-
<source url="{{ page.url | absolute_url }}">{{ site.
|
28
|
+
<source url="{{ page.url | absolute_url }}">{{ site.title }}</source>
|
27
29
|
</item>
|
28
30
|
{% endfor %}
|
29
31
|
</channel>
|
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.
|
4
|
+
version: 0.0.7
|
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:
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
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: '1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jekyll
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '4.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '4.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jekyll-paginate
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: kramdown-parser-gfm
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
69
83
|
description: ''
|
70
84
|
email: rcvalle@users.noreply.github.com
|
71
85
|
executables: []
|
@@ -117,15 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
131
|
requirements:
|
118
132
|
- - ">="
|
119
133
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
134
|
+
version: 2.3.0
|
121
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
136
|
requirements:
|
123
137
|
- - ">="
|
124
138
|
- !ruby/object:Gem::Version
|
125
139
|
version: '0'
|
126
140
|
requirements: []
|
127
|
-
|
128
|
-
rubygems_version: 2.7.7
|
141
|
+
rubygems_version: 3.0.3
|
129
142
|
signing_key:
|
130
143
|
specification_version: 4
|
131
144
|
summary: A Bootstrap-based Jekyll theme.
|