jekyll-theme-bootstrap4 0.0.3 → 0.0.9
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/post.html +8 -3
- data/_layouts/blog.html +2 -2
- data/_layouts/default.html +7 -47
- data/_layouts/post.html +1 -1
- 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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6e492abd8142a9b2b7db6642f284644e3712129eb0d622fc556dfe695388087
|
4
|
+
data.tar.gz: cce1d11b057e5324d8b88f1157bd98f9c719c08b29605eaf38334d4025880a77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aef4be0acb9cbcb76bc235861e232be1054c0c7c8a8bdc7c0b8f58900eb965246f5f179c5414dcc3418f953706dac41966ff52ec7ea0a394c6c01e6d11ba37e
|
7
|
+
data.tar.gz: 835e6b46562e2ed80ec85808fee7a3a86c3d72afb72aabd2cb80e5e21f00e0c3e8c8cf8212592497243ec97833f6c3f812731ed203bd360487e8323ec9fd6004
|
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/post.html
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
<article itemscope itemtype="http://schema.org/BlogPosting">
|
2
|
-
<h1 itemprop="headline"
|
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>
|
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
|
+
{{ 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/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>
|
data/_layouts/default.html
CHANGED
@@ -9,56 +9,16 @@
|
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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>
|
12
|
+
{% if site.author %}
|
13
|
+
<meta name="author" content="{{ site.author }}">
|
14
|
+
{% endif %}
|
15
|
+
{% if site.description %}
|
16
|
+
<meta name="description" content="{{ site.description }}">
|
17
|
+
{% endif %}
|
58
18
|
</head>
|
59
19
|
<body>
|
60
20
|
{% include navigation.html %}
|
61
|
-
<div class="container">
|
21
|
+
<div class="container my-3 my-lg-5">
|
62
22
|
{{ content }}
|
63
23
|
</div>
|
64
24
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" crossorigin="anonymous"></script>
|
data/_layouts/post.html
CHANGED
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.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
|
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.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
|
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.9
|
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-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -131,14 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
131
|
requirements:
|
132
132
|
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
134
|
+
version: 2.3.0
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
|
-
rubygems_version: 3.0.
|
141
|
+
rubygems_version: 3.0.3
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: A Bootstrap-based Jekyll theme.
|