jekyll-theme-minimal-bootstrap 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ec913d094e7a52b63494bf478365707dfedc79f11152a4d7a8126cd86fee730
4
- data.tar.gz: be8d8ef5f6d255b0201684723e4cf8a817ba7ee8b97e1edadbed713f4740081a
3
+ metadata.gz: c28b02b3426ea3ba31de8559cd51721101e98e80eb8a6b1c9abde8d79e990bb9
4
+ data.tar.gz: 2be53746fe45f29d5da2cecefe9cbb02323e4609a99f61fbc9adc3f286ff372a
5
5
  SHA512:
6
- metadata.gz: 6cbad3d18d0bd34fceaafe756b2121dc8906ed35c5bcd822a6f1d87f4cccb8d10b96126f8541734f0df43809c7e0ca8afe398342100cdb143958f63aa13260a1
7
- data.tar.gz: 12d24674227d238da6446c084ad71d17629319766389f5dd581f6225e79cc31f292420e344eb89aa6862c3cc7d99802887bb89fe15cba834e17176d97e6ee6db
6
+ metadata.gz: 46c426a7e35fa0ea62cc70f9b3f367ab010e3ed7639b2f746df3b2ad994cd5a1cc815d74dd2f7b8b26cb6eabea06bf54be11feab013f169f9f473b520f0f772d
7
+ data.tar.gz: 2724c3e48ac733ea08e652ae841c2426c699a6e820e5c1d1df40de16f604ce2c1901eb488f28fdb138d0b0de7f4cbc5c784f0961b7b11bee61afbdd5684ac0c5
@@ -1,23 +1,22 @@
1
- {% if site.footer.copyright %}
2
- {% if site.footer.copyright.creative-common %}
3
- <p class="text-{{ site.footer.align | dafault: center }}">
4
- <a
5
- rel="license"
6
- href="https://creativecommons.org/licenses/by/4.0/"
7
- title="Creative Commons Attribution 4.0 International license"
8
- class="text-decoration-none"
9
- >
10
- <i class="fab fa-creative-commons fa-2x" aria-hidden="true"></i>
11
- <i class="fab fa-creative-commons-by fa-2x" aria-hidden="true"></i>
12
- </a>
13
- </p>
14
- {% endif %}
15
- {% if site.footer.copyright.text %}
16
- <p class="text-{{ site.footer.align | dafault: center }}">
17
- {{ site.footer.copyright.text }}
18
- </p>
19
- {% endif %}
20
- {% endif %}
1
+ <div class="py-2">
2
+ {% if site.footer.copyright %} {% if site.footer.copyright.creative-common %}
3
+ <p class="text-{{ site.footer.align | dafault: center }}">
4
+ <a
5
+ rel="license"
6
+ href="https://creativecommons.org/licenses/by/4.0/"
7
+ title="Creative Commons Attribution 4.0 International license"
8
+ class="text-decoration-none"
9
+ >
10
+ <i class="fab fa-creative-commons fa-2x" aria-hidden="true"></i>
11
+ <i class="fab fa-creative-commons-by fa-2x" aria-hidden="true"></i>
12
+ </a>
13
+ </p>
14
+ {% endif %} {% if site.footer.copyright.text %}
15
+ <p class="text-{{ site.footer.align | dafault: center }}">
16
+ {{ site.footer.copyright.text }}
17
+ </p>
18
+ {% endif %} {% endif %}
19
+ </div>
21
20
 
22
21
  <script
23
22
  crossorigin="anonymous"
data/_includes/head.html CHANGED
@@ -20,13 +20,13 @@
20
20
  rel="stylesheet"
21
21
  />
22
22
  <link
23
- href="{{ site.apple-touch-icon | default: /assets/images/apple-touch-icon.png }}"
23
+ href="{{ site.apple-touch-icon | relative_url }}"
24
24
  rel="apple-touch-icon"
25
25
  type="image/png"
26
26
  sizes="180x180"
27
27
  />
28
28
  <link
29
- href="{{ site.favicon | default: /assets/images/favicon.png }}"
29
+ href="{{ site.favicon | relative_url }}"
30
30
  rel="icon"
31
31
  type="image/png"
32
32
  size="32x32"
@@ -1,23 +1,25 @@
1
- <div class="text-{{ site.header.align | dafault: center }} py-3">
2
- {% if site.header.text %}
3
- <p>{{ site.header.text }}</p>
4
- {% else %} {% if site.title %}<a href="{{ site.url }}"
5
- ><h1>{{ site.title }}</h1></a
6
- >{% endif %} {% if site.description %}
7
- <h6>{{ site.description }}</h6>
8
- {% endif %}{% endif %}
9
- </div>
1
+ <div class="py-2">
2
+ <div class="text-{{ site.header.align | dafault: center }}">
3
+ {% if site.header.text %}
4
+ <p>{{ site.header.text }}</p>
5
+ {% else %} {% if site.title %}<a href="{{ site.url }}"
6
+ ><h1>{{ site.title }}</h1></a
7
+ >{% endif %} {% if site.description %}
8
+ <h6>{{ site.description }}</h6>
9
+ {% endif %}{% endif %}
10
+ </div>
10
11
 
11
- {% if site.navigation %} {% assign default_paths = site.pages | map: "path" %}
12
- {% assign paths = site.header_pages | default: default_paths %} {% if paths %}
13
- <div class="nav-scroller">
14
- <nav class="nav d-flex justify-content-between">
15
- {% for path in paths %} {% assign page = site.pages | where: "path", path |
16
- first %} {% if page.title %}
17
- <a class="p-2" href="{{ page.url | absolute_url }}">
18
- {{ page.title | escape }}
19
- </a>
20
- {% endif %} {% endfor %}
21
- </nav>
12
+ {% if site.navigation %} {% assign default_paths = site.pages | map: "path" %}
13
+ {% assign paths = site.header_pages | default: default_paths %} {% if paths %}
14
+ <div class="nav-scroller">
15
+ <nav class="nav d-flex justify-content-between">
16
+ {% for path in paths %} {% assign page = site.pages | where: "path", path
17
+ | first %} {% if page.title %}
18
+ <a class="p-2" href="{{ page.url | absolute_url }}">
19
+ {{ page.title | escape }}
20
+ </a>
21
+ {% endif %} {% endfor %}
22
+ </nav>
23
+ </div>
24
+ {% endif %} {% endif %}
22
25
  </div>
23
- {% endif %} {% endif %}
data/_includes/main.html CHANGED
@@ -1 +1,3 @@
1
- {{ content }}
1
+ <div class="py-2">
2
+ {{ content }}
3
+ </div>
data/_layouts/blog.html CHANGED
@@ -2,10 +2,15 @@
2
2
  layout: page
3
3
  ---
4
4
 
5
- {% if site.posts.size > 0 %}
6
- <div class="text-{{ site.main.blog.align | dafault: center }} py-1">
5
+ <div class="text-{{ site.main.blog.align | dafault: center }}">
7
6
  <div class="d-inline-flex list-group">
8
- {% for post in site.posts %}
7
+ {% for post in site.posts %} {% assign condition = true %} {% assign compare
8
+ = page.title | downcase %} {% if page.scope == 'authors' %} {% assign
9
+ post_author = post.author | downcase %} {% if post_author == compare %} {%
10
+ assign condition = true %} {% else %} {% assign condition = false %} {%
11
+ endif %} {% elsif page.scope == 'categories' %} {% if post.categories
12
+ contains compare %} {% assign condition = true %} {% else %} {% assign
13
+ condition = false %} {% endif %} {% endif %} {% if condition %}
9
14
  <a
10
15
  href="{{ post.url | relative_url }}"
11
16
  class="list-group-item list-group-item-action"
@@ -19,14 +24,6 @@ layout: page
19
24
  >
20
25
  </div>
21
26
  </a>
22
- {%- endfor -%}
23
- <p class="py-2">
24
- <i class="fas fa-rss" aria-hidden="true"></i> {% if site.feed.path %}<a
25
- href="{{ site.feed.path }}"
26
- title="Atom Feed RSS"
27
- >Subscribe</a
28
- >{% endif %}
29
- </p>
27
+ {% endif %} {%- endfor -%}
30
28
  </div>
31
29
  </div>
32
- {%- endif -%}
data/_layouts/post.html CHANGED
@@ -21,4 +21,11 @@ layout: page
21
21
  </header>
22
22
 
23
23
  {{ content }}
24
+ <p>
25
+ <i class="fas fa-rss" aria-hidden="true"></i> {% if site.feed.path %}<a
26
+ href="{{ site.feed.path }}"
27
+ title="Atom Feed RSS"
28
+ >Subscribe</a
29
+ >{% endif %}
30
+ </p>
24
31
  </article>
Binary file
Binary file
@@ -0,0 +1,9 @@
1
+ $( 'p' ).addClass( "text-body text-justify" );
2
+ $( 'a' ).each( function() {
3
+ $( this ).addClass( "text-dark" );
4
+ var a = new RegExp( '/' + window.location.host + '/' );
5
+ if ( !a.test( this.href ) ) {
6
+ $( this ).attr( "target", "_blank" );
7
+ }
8
+ });
9
+ $( 'table' ).addClass( "table" );
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-minimal-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - saltgz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-21 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -95,6 +95,9 @@ files:
95
95
  - _layouts/default.html
96
96
  - _layouts/page.html
97
97
  - _layouts/post.html
98
+ - assets/images/apple-touch-icon.png
99
+ - assets/images/favicon.png
100
+ - assets/javascript/minimal-bootstrap.js
98
101
  homepage: https://github.com/saltgz/jekyll-theme-minimal-bootstrap
99
102
  licenses:
100
103
  - MIT